- Timestamp:
- Jan 6, 2007, 4:25:10 PM (18 years ago)
- Location:
- branches/mount_points/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/model.h
r10147 r10182 52 52 53 53 54 //! skeleton informations for all mount points 55 typedef struct 56 { 57 Vector up; //!< the up vector 58 Vector forward; //!< the forward vector 59 Vector center; //!< the center vector 60 } mountPointSkeleton; 61 62 63 54 64 //! This class defines the basic components of a model 55 65 class Model : virtual public BaseObject { 56 66 ObjectListDeclaration(Model); 67 68 typedef std::list<mountPointSkeleton> mpList; 57 69 58 70 public: … … 85 97 /** function to extract the mount points from the model data */ 86 98 virtual void extractMountPoints() {} 99 /** @returns a list of mounting points */ 100 inline const mpList& getMountPoints() const { return this->mountPoints; } 101 /** adds a mounting point to the model @param up up vector @param forward forward vector @param center center vector */ 102 inline void addMountPoint(Vector up, Vector forward, Vector center) 103 { mountPointSkeleton mps; mps.up = up; mps.forward = forward; mps.center = center; } 87 104 88 105 … … 92 109 93 110 protected: 94 modelInfo pModelInfo; //!< Reference to the modelInfo 111 modelInfo pModelInfo; //!< Reference to the modelInfo 112 mpList mountPoints; //!< a list of all mounting point skeletons 95 113 }; 96 114 -
branches/mount_points/src/lib/graphics/importer/obj/objModel.cc
r10147 r10182 44 44 45 45 this->finalize(); 46 47 this->extractMountPoints();48 46 } 49 47 -
branches/mount_points/src/lib/graphics/importer/static_model.cc
r10181 r10182 84 84 data->finalize(); 85 85 this->updateBase(); 86 this->extractMountPoints(); 86 87 } 87 88 -
branches/mount_points/src/lib/graphics/importer/static_model.h
r10147 r10182 58 58 59 59 void finalize(); 60 v oid extractMountPoints();60 virtual void extractMountPoints(); 61 61 62 62 void acquireData(const StaticModelData::Pointer& data); … … 71 71 private: 72 72 void updateBase(); 73 74 73 75 private: 74 76 StaticModelData::Pointer data;
Note: See TracChangeset
for help on using the changeset viewer.