Changeset 10182 in orxonox.OLD for branches/mount_points/src/lib/graphics/importer/model.h
- Timestamp:
- Jan 6, 2007, 4:25:10 PM (17 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.