- Timestamp:
- 02/12/07 09:05:33 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjectsParserXerces.h
r2113 r2114 29 29 30 30 31 class ViewCellsParseHandlers: public HandlerBase31 class ObjectsParseHandlers: public HandlerBase 32 32 { 33 33 public: … … 35 35 // Constructors and Destructor 36 36 // ----------------------------------------------------------------------- 37 ViewCellsParseHandlers(ObjectContainer &pvsObjects,37 ObjectsParseHandlers(ObjectContainer &pvsObjects, 38 38 ObjectContainer &preprocessorObjects, 39 39 BoundingBoxConverter *bconverter); 40 ~ ViewCellsParseHandlers();40 ~ObjectsParseHandlers(); 41 41 42 42 … … 74 74 void resetDocument(); 75 75 76 void CreateViewCellsManager(/*const char *name*/);77 78 void ReplacePvs();79 void ReplaceBvhPvs(ViewCell *vc);80 81 82 76 ///////////////////////// 83 77 84 VspBspTree *mVspBspTree;85 HierarchyManager *mHierarchyManager;86 87 BspTree *mBspTree;88 ViewCellsTree *mViewCellsTree;89 VspTree *mVspTree;90 91 BspNode *mCurrentBspNode;92 BvhNode *mCurrentBvhNode;93 KdNode *mCurrentOspNode;94 VspNode *mCurrentVspNode;95 96 ViewCell *mCurrentViewCell;97 98 BspNode *mBspRoot;99 VspNode *mVspRoot;100 ViewCell *mViewCellRoot;101 102 78 int mUniqueObjectId; 103 79 vector<BvhLeaf *> mBvhLeaves; 104 //typedef map<int, ViewCell *> ViewCellsMap;105 //ViewCellsMap mViewCells;106 ViewCellContainer mViewCells;107 108 ViewCellsManager *mViewCellsManager;109 110 ObjectContainer &mPvsObjects;111 80 ObjectContainer &mPreprocessorObjects; 112 81 113 bool mCreatePvsObjects;114 115 BoundingBoxConverter *mBoundingBoxConverter;116 AxisAlignedBox3 mViewSpaceBox;117 IndexedBoundingBoxContainer mIBoundingBoxes;118 119 82 /// current state of the parser 120 83 int mCurrentState; 121 84 122 enum { 123 PARSE_OPTIONS, 124 PARSE_VIEWCELLS, 125 PARSE_VIEWSPACE_HIERARCHY, 126 PARSE_OBJECTSPACE_HIERARCHY}; 127 128 /// view space / object space hierarchy types 129 enum {BSP, VSP, OSP, BVH}; 85 enum {, BVH}; 130 86 131 87 int mViewSpaceHierarchyType; … … 140 96 // Handlers for X3D 141 97 142 void StartBspLeaf(AttributeList& attributes);143 void StartBspInterior(AttributeList& attributes);144 void EndBspInterior();145 146 void StartVspLeaf(AttributeList& attributes);147 void StartVspInterior(AttributeList& attributes);148 void EndVspInterior();149 150 void StartViewCellPvs(ObjectPvs &pvs, const char *ptr);151 152 void EndViewCells();153 void EndBoundingBoxes();154 155 void StartBspElement(string element, AttributeList& attributes);156 void StartVspElement(string element, AttributeList& attributes);157 158 void StartViewSpaceHierarchy(AttributeList& attributes);159 98 void StartObjectSpaceHierarchy(AttributeList& attributes); 160 99 161 void StartBoundingBox(AttributeList& attributes);162 void StartViewCell(AttributeList& attributes, const bool isLeaf);163 void EndViewCellInterior();164 165 void StartViewSpaceHierarchyElement(const std::string &element, AttributeList& attributes);166 100 void StartObjectSpaceHierarchyElement(const std::string &element, AttributeList& attributes); 167 void StartViewCellHierarchyElement(const std::string &element, AttributeList& attributes);168 169 void StartOspElement(string element, AttributeList& attributes);170 171 void StartOspLeaf(AttributeList& attributes);172 void StartOspInterior(AttributeList& attributes);173 174 void CreateViewSpaceHierarchy();175 101 176 102 void StartBvhLeaf(AttributeList& attributes); … … 178 104 void StartBvhElement(string element, AttributeList& attributes); 179 105 180 void EndViewSpaceHierarchyInterior();181 106 void EndObjectSpaceHierarchyInterior(); 182 107
Note: See TracChangeset
for help on using the changeset viewer.