Ignore:
Timestamp:
02/12/07 09:05:33 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ObjectsParserXerces.h

    r2113 r2114  
    2929 
    3030 
    31 class ViewCellsParseHandlers: public HandlerBase 
     31class ObjectsParseHandlers: public HandlerBase 
    3232{ 
    3333public: 
     
    3535  //  Constructors and Destructor 
    3636  // ----------------------------------------------------------------------- 
    37   ViewCellsParseHandlers(ObjectContainer &pvsObjects,  
     37  ObjectsParseHandlers(ObjectContainer &pvsObjects,  
    3838                                                 ObjectContainer &preprocessorObjects,  
    3939                                                 BoundingBoxConverter *bconverter); 
    40   ~ViewCellsParseHandlers(); 
     40  ~ObjectsParseHandlers(); 
    4141   
    4242   
     
    7474  void resetDocument(); 
    7575 
    76   void CreateViewCellsManager(/*const char *name*/); 
    77  
    78   void ReplacePvs(); 
    79   void ReplaceBvhPvs(ViewCell *vc); 
    80  
    81  
    8276  ///////////////////////// 
    8377 
    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    
    10278  int mUniqueObjectId; 
    10379  vector<BvhLeaf *> mBvhLeaves; 
    104   //typedef map<int, ViewCell *> ViewCellsMap; 
    105   //ViewCellsMap mViewCells; 
    106   ViewCellContainer mViewCells; 
    107  
    108   ViewCellsManager *mViewCellsManager; 
    109  
    110   ObjectContainer &mPvsObjects; 
    11180  ObjectContainer &mPreprocessorObjects; 
    11281 
    113   bool mCreatePvsObjects; 
    114  
    115   BoundingBoxConverter *mBoundingBoxConverter; 
    116   AxisAlignedBox3 mViewSpaceBox; 
    117   IndexedBoundingBoxContainer mIBoundingBoxes; 
    118   
    11982  /// current state of the parser 
    12083  int mCurrentState; 
    12184   
    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}; 
    13086 
    13187  int mViewSpaceHierarchyType; 
     
    14096  // Handlers for X3D 
    14197   
    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); 
    15998  void StartObjectSpaceHierarchy(AttributeList& attributes); 
    16099 
    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); 
    166100  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(); 
    175101 
    176102  void StartBvhLeaf(AttributeList& attributes); 
     
    178104  void StartBvhElement(string element, AttributeList& attributes); 
    179105 
    180   void EndViewSpaceHierarchyInterior(); 
    181106  void EndObjectSpaceHierarchyInterior(); 
    182107 
Note: See TracChangeset for help on using the changeset viewer.