Changeset 10314 in orxonox.OLD for trunk/src/lib/graphics/importer/model.h
- Timestamp:
- Jan 24, 2007, 12:45:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.h
r10147 r10314 52 52 53 53 54 //! skeleton informations for all mount points 55 typedef struct 56 { 57 std::string name; //!< the name of the mount point 58 Vector up; //!< the up vector 59 Vector forward; //!< the forward vector 60 Vector center; //!< the center vector 61 } mountPointSkeleton; 62 63 64 54 65 //! This class defines the basic components of a model 55 66 class Model : virtual public BaseObject { 56 67 ObjectListDeclaration(Model); 68 69 typedef std::list<mountPointSkeleton> mpList; 57 70 58 71 public: … … 85 98 /** function to extract the mount points from the model data */ 86 99 virtual void extractMountPoints() {} 100 /** @returns a list of mounting points */ 101 inline const mpList& getMountPoints() const { return this->mountPoints; } 102 void addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name); 87 103 88 104 … … 92 108 93 109 protected: 94 modelInfo pModelInfo; //!< Reference to the modelInfo 110 modelInfo pModelInfo; //!< Reference to the modelInfo 111 mpList mountPoints; //!< a list of all mounting point skeletons 95 112 }; 96 113
Note: See TracChangeset
for help on using the changeset viewer.