VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
boundingVolumeFace.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: boundingVolumeFace.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 
9 // Placed in a separate file, so it can be included in multiple
10 // headers. Using a forward declaration in all but one place
11 // does not seem to work for all compilers.
12 //
13 
14 #pragma once
15 
16 #include <vlutil/vlString.h>
17 
18 
20 {
27  , DtInvalidFace // must be last entry
28 };
29 
31 {
32  DtString surface;
33 
34  switch (face)
35  {
36  case DtFrontFace:
37  surface = "front";
38  break;
39 
40  case DtBackFace:
41  surface = "rear";
42  break;
43 
44  case DtLeftFace:
45  surface = "left-side";
46  break;
47 
48  case DtRightFace:
49  surface = "right-side";
50  break;
51 
52  case DtTopFace:
53  surface = "top";
54  break;
55 
56  case DtBottomFace:
57  surface = "bottom";
58  break;
59 
60  default:
61  surface = "invalid";
62  break;
63  }
64 
65  return surface;
66 }
67 
69 {
70  return boundingVolumeFaceString(static_cast<DtBoundingVolumeFace>(face));
71 }
72 
74 {
76 }
77 
79 {
81 }
82 
84 {
86 }
87 
89 {
91 }
92 
94 {
96 }
97 
99 {
101 }
102 
104 {
106 }
107 
109 {
110  return DtInvalidFace; // since DtInvalidFace is the last enum entry, it is also the num of enum entries
111 }
Definition: boundingVolumeFace.h:26
Definition: boundingVolumeFace.h:22
int boundingVolumeFaceSides()
Definition: boundingVolumeFace.h:108
DtString rearFaceString()
Definition: boundingVolumeFace.h:98
Definition: boundingVolumeFace.h:25
Definition: boundingVolumeFace.h:24
DtBoundingVolumeFace
Definition: boundingVolumeFace.h:19
DtString invalidFaceString()
Definition: boundingVolumeFace.h:103
DtString topFaceString()
Definition: boundingVolumeFace.h:88
DtString bottomFaceString()
Definition: boundingVolumeFace.h:93
Definition: boundingVolumeFace.h:23
DtString leftFaceString()
Definition: boundingVolumeFace.h:78
DtString frontFaceString()
Definition: boundingVolumeFace.h:73
DtString boundingVolumeFaceString(DtBoundingVolumeFace face)
Definition: boundingVolumeFace.h:30
Definition: boundingVolumeFace.h:21
DtString rightFaceString()
Definition: boundingVolumeFace.h:83
Definition: boundingVolumeFace.h:27

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)