Public Types | |
enum | TextureMappingTypeEnum { StoredUVMapping = 0, PlanarMapping = 1, CylinderMapping = 2, SphericalMapping = 3, CubicalMapping = 4, SkyPlanarMapping = 5, SkyCylinderMapping = 6, SkySphericalMapping = 7, SkyCubicalMapping = 8, UVBRepMapping = 9, BuildingMapping = 10 } |
Public Member Functions | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
virtual int | DtkDynamicType (const int &inId)=0 |
virtual void | dump (FILE *file=stdout) |
Dtk_string | GetImagePath () |
Return image path. More... | |
Dtk_Double64 | GetImageSize () |
Returns image size. More... | |
TextureMappingTypeEnum | GetMappingType () |
Returns mapping type. More... | |
Dtk_Double64 | GetRotateAngle () |
Returns rotate angle. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_picture * | GetTextureImage () |
Returns Dtk_picture. More... | |
Dtk_transfoPtr | GetTransfo () |
Returns texture transfo. More... | |
Dtk_Double64 | GetUOffset () |
Returns U offset. More... | |
Dtk_Double64 | GetUScale () |
Returns U scale factor. More... | |
Dtk_Double64 | GetVOffset () |
Returns V offset. More... | |
Dtk_Double64 | GetVScale () |
Returns V scale factor. More... | |
Dtk_bool | IsUFlipped () |
Returns if U flipped. More... | |
Dtk_bool | IsURepeat () |
Returns if texture is U repeat. More... | |
Dtk_bool | IsVFlipped () |
Returns if V flipped. More... | |
Dtk_bool | IsVRepeat () |
Returns if texture is V repeat. More... | |
void | SetFlipFlag (Dtk_bool inUFlip, Dtk_bool inVFlip) |
Sets image U and V flip. More... | |
void | SetImagePath (Dtk_string inImagePath) |
Sets image file path. More... | |
void | SetImageSize (Dtk_Double64 inSize) |
Sets image size. More... | |
void | SetOffset (Dtk_Double64 inUOffset, Dtk_Double64 inVOffset) |
Sets image U and V offset. More... | |
void | SetRepeat (Dtk_bool inURepeat, Dtk_bool inVRepeat) |
Sets image U and V flip. More... | |
void | SetRotateAngle (Dtk_Double64 inAlpha) |
Sets image rotate angle. More... | |
void | SetScale (Dtk_Double64 inUScale, Dtk_Double64 inVScale) |
Sets image U and V scale. More... | |
void | SetTextureImage (Dtk_picture *inImage) |
Sets Dtk_picture. More... | |
void | SetTransfo (Dtk_transfoPtr inTransfo) |
Sets image transfo. More... | |
Static Public Member Functions | |
static Dtk_TextureInfosPtr | Create (const TextureMappingTypeEnum &inType) |
Create a Dtk_TextureInfosPtr. More... | |
static Dtk_TextureInfos * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_TEXTURE } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _Copy (const Dtk_TextureInfos &inToBeCopied) |
void | _init () |
void | _Init () |
void | _reset () |
void | _Reset () |
virtual Dtk_Object * | Clone () |
Dtk_TextureInfos (const Dtk_TextureInfos &inToBeCopied) | |
Copy constructor. More... | |
Dtk_TextureInfos (const TextureMappingTypeEnum &inType) | |
virtual | ~Dtk_TextureInfos () |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_TextureInfos > |
|
protected |
Copy constructor.
inToBeCopied | Object to copy. |
|
protected |
|
protectedvirtual |
Destructor.
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedvirtual |
|
static |
Create a Dtk_TextureInfosPtr.
inType | : Mapping type: Mapping type can be :
|
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
Dtk_string Dtk_TextureInfos::GetImagePath | ( | ) |
Return image path.
Dtk_Double64 Dtk_TextureInfos::GetImageSize | ( | ) |
Returns image size.
TextureMappingTypeEnum Dtk_TextureInfos::GetMappingType | ( | ) |
Returns mapping type.
Dtk_Double64 Dtk_TextureInfos::GetRotateAngle | ( | ) |
Returns rotate angle.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
Dtk_picture* Dtk_TextureInfos::GetTextureImage | ( | ) |
Returns Dtk_picture.
Dtk_transfoPtr Dtk_TextureInfos::GetTransfo | ( | ) |
Returns texture transfo.
Dtk_Double64 Dtk_TextureInfos::GetUOffset | ( | ) |
Returns U offset.
Dtk_Double64 Dtk_TextureInfos::GetUScale | ( | ) |
Returns U scale factor.
Dtk_Double64 Dtk_TextureInfos::GetVOffset | ( | ) |
Returns V offset.
Dtk_Double64 Dtk_TextureInfos::GetVScale | ( | ) |
Returns V scale factor.
Dtk_bool Dtk_TextureInfos::IsUFlipped | ( | ) |
Returns if U flipped.
Dtk_bool Dtk_TextureInfos::IsURepeat | ( | ) |
Returns if texture is U repeat.
Dtk_bool Dtk_TextureInfos::IsVFlipped | ( | ) |
Returns if V flipped.
Dtk_bool Dtk_TextureInfos::IsVRepeat | ( | ) |
Returns if texture is V repeat.
void Dtk_TextureInfos::SetImagePath | ( | Dtk_string | inImagePath | ) |
Sets image file path.
void Dtk_TextureInfos::SetImageSize | ( | Dtk_Double64 | inSize | ) |
Sets image size.
void Dtk_TextureInfos::SetOffset | ( | Dtk_Double64 | inUOffset, |
Dtk_Double64 | inVOffset | ||
) |
Sets image U and V offset.
Sets image U and V flip.
void Dtk_TextureInfos::SetRotateAngle | ( | Dtk_Double64 | inAlpha | ) |
Sets image rotate angle.
void Dtk_TextureInfos::SetScale | ( | Dtk_Double64 | inUScale, |
Dtk_Double64 | inVScale | ||
) |
Sets image U and V scale.
void Dtk_TextureInfos::SetTextureImage | ( | Dtk_picture * | inImage | ) |
Sets Dtk_picture.
void Dtk_TextureInfos::SetTransfo | ( | Dtk_transfoPtr | inTransfo | ) |
Sets image transfo.
|
friend |
|
protected |
|
protectedinherited |