//! Sets an attribute as float value\r
virtual void setAttribute(s32 index, f32 value) = 0;\r
\r
- /*\r
-\r
- String Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as string\r
- virtual void addString(const c8* attributeName, const c8* value) = 0;\r
-\r
- //! Sets an attribute value as string.\r
- //! \param attributeName: Name for the attribute\r
- //! \param value: Value for the attribute. Set this to 0 to delete the attribute\r
- virtual void setAttribute(const c8* attributeName, const c8* value) = 0;\r
-\r
- //! Gets an attribute as string.\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- //! or defaultNotFound if attribute is not set.\r
- virtual core::stringc getAttributeAsString(const c8* attributeName, const core::stringc& defaultNotFound=core::stringc()) const = 0;\r
-\r
- //! Gets an attribute as string.\r
- //! \param attributeName Name of the attribute to get.\r
- //! \param target Buffer where the string is copied to.\r
- virtual void getAttributeAsString(const c8* attributeName, c8* target) const = 0;\r
-\r
- //! Returns attribute value as string by index.\r
- //! \param index Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::stringc getAttributeAsString(s32 index) const = 0;\r
-\r
- //! Sets an attribute value as string.\r
- //! \param index Index value, must be between 0 and getAttributeCount()-1.\r
- //! \param value String to which the attribute is set.\r
- virtual void setAttribute(s32 index, const c8* value) = 0;\r
-\r
- // wide strings\r
-\r
- //! Adds an attribute as string\r
- virtual void addString(const c8* attributeName, const wchar_t* value) = 0;\r
-\r
- //! Sets an attribute value as string.\r
- //! \param attributeName: Name for the attribute\r
- //! \param value: Value for the attribute. Set this to 0 to delete the attribute\r
- virtual void setAttribute(const c8* attributeName, const wchar_t* value) = 0;\r
-\r
- //! Gets an attribute as string.\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- //! or defaultNotFound if attribute is not set.\r
- virtual core::stringw getAttributeAsStringW(const c8* attributeName, const core::stringw& defaultNotFound = core::stringw()) const = 0;\r
-\r
- //! Gets an attribute as string.\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param target: Buffer where the string is copied to.\r
- virtual void getAttributeAsStringW(const c8* attributeName, wchar_t* target) const = 0;\r
-\r
- //! Returns attribute value as string by index.\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::stringw getAttributeAsStringW(s32 index) const = 0;\r
-\r
- //! Sets an attribute value as string.\r
- //! \param index Index value, must be between 0 and getAttributeCount()-1.\r
- //! \param value String to which the attribute is set.\r
- virtual void setAttribute(s32 index, const wchar_t* value) = 0;\r
\r
/*\r
-\r
- Binary Data Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as binary data\r
- virtual void addBinary(const c8* attributeName, void* data, s32 dataSizeInBytes) = 0;\r
-\r
- //! Sets an attribute as binary data\r
- virtual void setAttribute(const c8* attributeName, void* data, s32 dataSizeInBytes ) = 0;\r
-\r
- //! Gets an attribute as binary data\r
- /** \param attributeName: Name of the attribute to get.\r
- \param outData Pointer to buffer where data shall be stored.\r
- \param maxSizeInBytes Maximum number of bytes to write into outData.\r
- */\r
- virtual void getAttributeAsBinaryData(const c8* attributeName, void* outData, s32 maxSizeInBytes) const = 0;\r
-\r
- //! Gets an attribute as binary data\r
- /** \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- \param outData Pointer to buffer where data shall be stored.\r
- \param maxSizeInBytes Maximum number of bytes to write into outData.\r
- */\r
- virtual void getAttributeAsBinaryData(s32 index, void* outData, s32 maxSizeInBytes) const = 0;\r
-\r
- //! Sets an attribute as binary data\r
- virtual void setAttribute(s32 index, void* data, s32 dataSizeInBytes ) = 0;\r
-\r
-\r
- /*\r
- Array Attribute\r
- */\r
-\r
- //! Adds an attribute as wide string array\r
- virtual void addArray(const c8* attributeName, const core::array<core::stringw>& value) = 0;\r
-\r
- //! Sets an attribute value as a wide string array.\r
- //! \param attributeName: Name for the attribute\r
- //! \param value: Value for the attribute. Set this to 0 to delete the attribute\r
- virtual void setAttribute(const c8* attributeName, const core::array<core::stringw>& value) = 0;\r
-\r
- //! Gets an attribute as an array of wide strings.\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- //! or defaultNotFound if attribute is not set.\r
- virtual core::array<core::stringw> getAttributeAsArray(const c8* attributeName, const core::array<core::stringw>& defaultNotFound = core::array<core::stringw>()) const = 0;\r
-\r
- //! Returns attribute value as an array of wide strings by index.\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::array<core::stringw> getAttributeAsArray(s32 index) const = 0;\r
-\r
- //! Sets an attribute as an array of wide strings\r
- virtual void setAttribute(s32 index, const core::array<core::stringw>& value) = 0;\r
-\r
-\r
- /*\r
-\r
Bool Attribute\r
-\r
*/\r
\r
//! Adds an attribute as bool\r
//! Sets an attribute as boolean value\r
virtual void setAttribute(s32 index, bool value) = 0;\r
\r
- /*\r
-\r
- Enumeration Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as enum\r
- virtual void addEnum(const c8* attributeName, const c8* enumValue, const c8* const* enumerationLiterals) = 0;\r
-\r
- //! Adds an attribute as enum\r
- virtual void addEnum(const c8* attributeName, s32 enumValue, const c8* const* enumerationLiterals) = 0;\r
-\r
- //! Sets an attribute as enumeration\r
- virtual void setAttribute(const c8* attributeName, const c8* enumValue, const c8* const* enumerationLiterals) = 0;\r
-\r
- //! Gets an attribute as enumeration\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual const c8* getAttributeAsEnumeration(const c8* attributeName, const c8* defaultNotFound = 0) const = 0;\r
-\r
- //! Gets an attribute as enumeration\r
- /** \param attributeName: Name of the attribute to get.\r
- \param enumerationLiteralsToUse: Use these enumeration literals to get\r
- the index value instead of the set ones. This is useful when the\r
- attribute list maybe was read from an xml file, and only contains the\r
- enumeration string, but no information about its index.\r
- \return Returns value of the attribute previously set by setAttribute()\r
- */\r
- virtual s32 getAttributeAsEnumeration(const c8* attributeName, const c8* const* enumerationLiteralsToUse, s32 defaultNotFound = -1) const = 0;\r
-\r
- //! Gets an attribute as enumeration\r
- /** \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- \param enumerationLiteralsToUse: Use these enumeration literals to get\r
- the index value instead of the set ones. This is useful when the\r
- attribute list maybe was read from an xml file, and only contains the\r
- enumeration string, but no information about its index.\r
- \param defaultNotFound Value returned when the attribute referenced by the index was not found.\r
- \return Returns value of the attribute previously set by setAttribute()\r
- */\r
- virtual s32 getAttributeAsEnumeration(s32 index, const c8* const* enumerationLiteralsToUse, s32 defaultNotFound = -1) const = 0;\r
-\r
- //! Gets an attribute as enumeration\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual const c8* getAttributeAsEnumeration(s32 index) const = 0;\r
-\r
- //! Gets the list of enumeration literals of an enumeration attribute\r
- //! \param attributeName Name of the attribute to get.\r
- //! \param outLiterals Set of strings to choose the enum name from.\r
- virtual void getAttributeEnumerationLiteralsOfEnumeration(const c8* attributeName, core::array<core::stringc>& outLiterals) const = 0;\r
-\r
- //! Gets the list of enumeration literals of an enumeration attribute\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- //! \param outLiterals Set of strings to choose the enum name from.\r
- virtual void getAttributeEnumerationLiteralsOfEnumeration(s32 index, core::array<core::stringc>& outLiterals) const = 0;\r
-\r
- //! Sets an attribute as enumeration\r
- virtual void setAttribute(s32 index, const c8* enumValue, const c8* const* enumerationLiterals) = 0;\r
-\r
-\r
- /*\r
-\r
- SColor Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as color\r
- virtual void addColor(const c8* attributeName, video::SColor value) = 0;\r
-\r
-\r
- //! Sets a attribute as color\r
- virtual void setAttribute(const c8* attributeName, video::SColor color) = 0;\r
-\r
- //! Gets an attribute as color\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual video::SColor getAttributeAsColor(const c8* attributeName, const video::SColor& defaultNotFound = video::SColor(0)) const = 0;\r
-\r
- //! Gets an attribute as color\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual video::SColor getAttributeAsColor(s32 index) const = 0;\r
-\r
- //! Sets an attribute as color\r
- virtual void setAttribute(s32 index, video::SColor color) = 0;\r
-\r
- /*\r
-\r
- SColorf Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as floating point color\r
- virtual void addColorf(const c8* attributeName, video::SColorf value) = 0;\r
-\r
- //! Sets a attribute as floating point color\r
- virtual void setAttribute(const c8* attributeName, video::SColorf color) = 0;\r
-\r
- //! Gets an attribute as floating point color\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual video::SColorf getAttributeAsColorf(const c8* attributeName, const video::SColorf& defaultNotFound = video::SColorf(0)) const = 0;\r
-\r
- //! Gets an attribute as floating point color\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual video::SColorf getAttributeAsColorf(s32 index) const = 0;\r
-\r
- //! Sets an attribute as floating point color\r
- virtual void setAttribute(s32 index, video::SColorf color) = 0;\r
-\r
-\r
- /*\r
-\r
- Vector3d Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as 3d vector\r
- virtual void addVector3d(const c8* attributeName, const core::vector3df& value) = 0;\r
-\r
- //! Sets a attribute as 3d vector\r
- virtual void setAttribute(const c8* attributeName, const core::vector3df& v) = 0;\r
-\r
- //! Gets an attribute as 3d vector\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::vector3df getAttributeAsVector3d(const c8* attributeName, const core::vector3df& defaultNotFound=core::vector3df(0,0,0)) const = 0;\r
-\r
- //! Gets an attribute as 3d vector\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::vector3df getAttributeAsVector3d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as vector\r
- virtual void setAttribute(s32 index, const core::vector3df& v) = 0;\r
-\r
- /*\r
-\r
- Vector2d Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as 2d vector\r
- virtual void addVector2d(const c8* attributeName, const core::vector2df& value) = 0;\r
-\r
- //! Sets a attribute as 2d vector\r
- virtual void setAttribute(const c8* attributeName, const core::vector2df& v) = 0;\r
-\r
- //! Gets an attribute as vector\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::vector2df getAttributeAsVector2d(const c8* attributeName, const core::vector2df& defaultNotFound=core::vector2df(0,0)) const = 0;\r
-\r
- //! Gets an attribute as position\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::vector2df getAttributeAsVector2d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as 2d vector\r
- virtual void setAttribute(s32 index, const core::vector2df& v) = 0;\r
-\r
- /*\r
-\r
- Position2d Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as 2d position\r
- virtual void addPosition2d(const c8* attributeName, const core::position2di& value) = 0;\r
-\r
- //! Sets a attribute as 2d position\r
- virtual void setAttribute(const c8* attributeName, const core::position2di& v) = 0;\r
-\r
- //! Gets an attribute as position\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::position2di getAttributeAsPosition2d(const c8* attributeName, const core::position2di& defaultNotFound=core::position2di(0,0)) const = 0;\r
-\r
- //! Gets an attribute as position\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::position2di getAttributeAsPosition2d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as 2d position\r
- virtual void setAttribute(s32 index, const core::position2di& v) = 0;\r
-\r
- /*\r
-\r
- Rectangle Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as rectangle\r
- virtual void addRect(const c8* attributeName, const core::rect<s32>& value) = 0;\r
-\r
- //! Sets an attribute as rectangle\r
- virtual void setAttribute(const c8* attributeName, const core::rect<s32>& v) = 0;\r
-\r
- //! Gets an attribute as rectangle\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::rect<s32> getAttributeAsRect(const c8* attributeName, const core::rect<s32>& defaultNotFound = core::rect<s32>()) const = 0;\r
-\r
- //! Gets an attribute as rectangle\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::rect<s32> getAttributeAsRect(s32 index) const = 0;\r
-\r
- //! Sets an attribute as rectangle\r
- virtual void setAttribute(s32 index, const core::rect<s32>& v) = 0;\r
-\r
-\r
- /*\r
-\r
- Dimension2d Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as dimension2d\r
- virtual void addDimension2d(const c8* attributeName, const core::dimension2d<u32>& value) = 0;\r
-\r
- //! Sets an attribute as dimension2d\r
- virtual void setAttribute(const c8* attributeName, const core::dimension2d<u32>& v) = 0;\r
-\r
- //! Gets an attribute as dimension2d\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::dimension2d<u32> getAttributeAsDimension2d(const c8* attributeName, const core::dimension2d<u32>& defaultNotFound = core::dimension2d<u32>()) const = 0;\r
-\r
- //! Gets an attribute as dimension2d\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::dimension2d<u32> getAttributeAsDimension2d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as dimension2d\r
- virtual void setAttribute(s32 index, const core::dimension2d<u32>& v) = 0;\r
-\r
-\r
- /*\r
- matrix attribute\r
- */\r
-\r
- //! Adds an attribute as matrix\r
- virtual void addMatrix(const c8* attributeName, const core::matrix4& v) = 0;\r
-\r
- //! Sets an attribute as matrix\r
- virtual void setAttribute(const c8* attributeName, const core::matrix4& v) = 0;\r
-\r
- //! Gets an attribute as a matrix4\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::matrix4 getAttributeAsMatrix(const c8* attributeName, const core::matrix4& defaultNotFound=core::matrix4()) const = 0;\r
-\r
- //! Gets an attribute as matrix\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::matrix4 getAttributeAsMatrix(s32 index) const = 0;\r
-\r
- //! Sets an attribute as matrix\r
- virtual void setAttribute(s32 index, const core::matrix4& v) = 0;\r
-\r
- /*\r
- quaternion attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as quaternion\r
- virtual void addQuaternion(const c8* attributeName, const core::quaternion& v) = 0;\r
-\r
- //! Sets an attribute as quaternion\r
- virtual void setAttribute(const c8* attributeName, const core::quaternion& v) = 0;\r
-\r
- //! Gets an attribute as a quaternion\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::quaternion getAttributeAsQuaternion(const c8* attributeName, const core::quaternion& defaultNotFound=core::quaternion(0,1,0, 0)) const = 0;\r
-\r
- //! Gets an attribute as quaternion\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::quaternion getAttributeAsQuaternion(s32 index) const = 0;\r
-\r
- //! Sets an attribute as quaternion\r
- virtual void setAttribute(s32 index, const core::quaternion& v) = 0;\r
-\r
- /*\r
-\r
- 3d bounding box\r
-\r
- */\r
-\r
- //! Adds an attribute as axis aligned bounding box\r
- virtual void addBox3d(const c8* attributeName, const core::aabbox3df& v) = 0;\r
-\r
- //! Sets an attribute as axis aligned bounding box\r
- virtual void setAttribute(const c8* attributeName, const core::aabbox3df& v) = 0;\r
-\r
- //! Gets an attribute as a axis aligned bounding box\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::aabbox3df getAttributeAsBox3d(const c8* attributeName, const core::aabbox3df& defaultNotFound=core::aabbox3df(0,0,0, 0,0,0)) const = 0;\r
-\r
- //! Gets an attribute as axis aligned bounding box\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::aabbox3df getAttributeAsBox3d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as axis aligned bounding box\r
- virtual void setAttribute(s32 index, const core::aabbox3df& v) = 0;\r
-\r
- /*\r
-\r
- plane\r
-\r
- */\r
-\r
- //! Adds an attribute as 3d plane\r
- virtual void addPlane3d(const c8* attributeName, const core::plane3df& v) = 0;\r
-\r
- //! Sets an attribute as 3d plane\r
- virtual void setAttribute(const c8* attributeName, const core::plane3df& v) = 0;\r
-\r
- //! Gets an attribute as a 3d plane\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::plane3df getAttributeAsPlane3d(const c8* attributeName, const core::plane3df& defaultNotFound=core::plane3df(0,0,0, 0,1,0)) const = 0;\r
-\r
- //! Gets an attribute as 3d plane\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::plane3df getAttributeAsPlane3d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as 3d plane\r
- virtual void setAttribute(s32 index, const core::plane3df& v) = 0;\r
-\r
-\r
- /*\r
-\r
- 3d triangle\r
-\r
- */\r
-\r
- //! Adds an attribute as 3d triangle\r
- virtual void addTriangle3d(const c8* attributeName, const core::triangle3df& v) = 0;\r
-\r
- //! Sets an attribute as 3d trianle\r
- virtual void setAttribute(const c8* attributeName, const core::triangle3df& v) = 0;\r
-\r
- //! Gets an attribute as a 3d triangle\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::triangle3df getAttributeAsTriangle3d(const c8* attributeName, const core::triangle3df& defaultNotFound = core::triangle3df(core::vector3df(0,0,0), core::vector3df(0,0,0), core::vector3df(0,0,0))) const = 0;\r
-\r
- //! Gets an attribute as 3d triangle\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::triangle3df getAttributeAsTriangle3d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as 3d triangle\r
- virtual void setAttribute(s32 index, const core::triangle3df& v) = 0;\r
-\r
-\r
- /*\r
-\r
- line 2d\r
-\r
- */\r
-\r
- //! Adds an attribute as a 2d line\r
- virtual void addLine2d(const c8* attributeName, const core::line2df& v) = 0;\r
-\r
- //! Sets an attribute as a 2d line\r
- virtual void setAttribute(const c8* attributeName, const core::line2df& v) = 0;\r
-\r
- //! Gets an attribute as a 2d line\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::line2df getAttributeAsLine2d(const c8* attributeName, const core::line2df& defaultNotFound = core::line2df(0,0, 0,0)) const = 0;\r
-\r
- //! Gets an attribute as a 2d line\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::line2df getAttributeAsLine2d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as a 2d line\r
- virtual void setAttribute(s32 index, const core::line2df& v) = 0;\r
-\r
-\r
- /*\r
-\r
- line 3d\r
-\r
- */\r
-\r
- //! Adds an attribute as a 3d line\r
- virtual void addLine3d(const c8* attributeName, const core::line3df& v) = 0;\r
-\r
- //! Sets an attribute as a 3d line\r
- virtual void setAttribute(const c8* attributeName, const core::line3df& v) = 0;\r
-\r
- //! Gets an attribute as a 3d line\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- //! \return Returns value of the attribute previously set by setAttribute()\r
- virtual core::line3df getAttributeAsLine3d(const c8* attributeName, const core::line3df& defaultNotFound=core::line3df(0,0,0, 0,0,0)) const = 0;\r
-\r
- //! Gets an attribute as a 3d line\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual core::line3df getAttributeAsLine3d(s32 index) const = 0;\r
-\r
- //! Sets an attribute as a 3d line\r
- virtual void setAttribute(s32 index, const core::line3df& v) = 0;\r
-\r
-\r
- /*\r
-\r
- Texture Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as texture reference\r
- virtual void addTexture(const c8* attributeName, video::ITexture* texture, const io::path& filename = "") = 0;\r
-\r
- //! Sets an attribute as texture reference\r
- virtual void setAttribute(const c8* attributeName, video::ITexture* texture, const io::path& filename = "") = 0;\r
-\r
- //! Gets an attribute as texture reference\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- virtual video::ITexture* getAttributeAsTexture(const c8* attributeName, video::ITexture* defaultNotFound=0) const = 0;\r
-\r
- //! Gets an attribute as texture reference\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual video::ITexture* getAttributeAsTexture(s32 index) const = 0;\r
-\r
- //! Sets an attribute as texture reference\r
- virtual void setAttribute(s32 index, video::ITexture* texture, const io::path& filename = "") = 0;\r
-\r
-\r
- /*\r
-\r
- User Pointer Attribute\r
-\r
- */\r
-\r
- //! Adds an attribute as user pointer\r
- virtual void addUserPointer(const c8* attributeName, void* userPointer) = 0;\r
-\r
- //! Sets an attribute as user pointer\r
- virtual void setAttribute(const c8* attributeName, void* userPointer) = 0;\r
-\r
- //! Gets an attribute as user pointer\r
- //! \param attributeName: Name of the attribute to get.\r
- //! \param defaultNotFound Value returned when attributeName was not found\r
- virtual void* getAttributeAsUserPointer(const c8* attributeName, void* defaultNotFound = 0) const = 0;\r
-\r
- //! Gets an attribute as user pointer\r
- //! \param index: Index value, must be between 0 and getAttributeCount()-1.\r
- virtual void* getAttributeAsUserPointer(s32 index) const = 0;\r
-\r
- //! Sets an attribute as user pointer\r
- virtual void setAttribute(s32 index, void* userPointer) = 0;\r
-\r
};\r
\r
} // end namespace io\r
} // end namespace irr\r
\r
#endif\r
-\r
-\r
-\r