Open CASCADE Technology
6.5.4
|
This class provides the implementation
of a 1D texture applyable along a segment.
You might use the SetSegment() method
to set the way the texture is "streched" on facets.
#include <Graphic3d_Texture1Dsegment.hxx>
Public Member Functions | |
Graphic3d_Texture1Dsegment (const Handle< Graphic3d_StructureManager > &VM, const Standard_CString FileName) | |
Creates a texture from a file | |
Graphic3d_Texture1Dsegment (const Handle< Graphic3d_StructureManager > &VM, const Graphic3d_NameOfTexture1D NOT) | |
Creates a texture from a predefined texture name set. | |
void | SetSegment (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal Z1, const Standard_ShortReal X2, const Standard_ShortReal Y2, const Standard_ShortReal Z2) |
Sets the texture application bounds. Defines the way the texture is stretched across facets. Default values are <0.0, 0.0, 0.0> , <0.0, 0.0, 1.0> | |
void | Segment (Standard_ShortReal &X1, Standard_ShortReal &Y1, Standard_ShortReal &Z1, Standard_ShortReal &X2, Standard_ShortReal &Y2, Standard_ShortReal &Z2) const |
Returns the values of the current segment X1, Y1, Z1 , X2, Y2, Z2. |
Graphic3d_Texture1Dsegment::Graphic3d_Texture1Dsegment | ( | const Handle< Graphic3d_StructureManager > & | VM, |
const Standard_CString | FileName | ||
) |
Graphic3d_Texture1Dsegment::Graphic3d_Texture1Dsegment | ( | const Handle< Graphic3d_StructureManager > & | VM, |
const Graphic3d_NameOfTexture1D | NOT | ||
) |
void Graphic3d_Texture1Dsegment::Segment | ( | Standard_ShortReal & | X1, |
Standard_ShortReal & | Y1, | ||
Standard_ShortReal & | Z1, | ||
Standard_ShortReal & | X2, | ||
Standard_ShortReal & | Y2, | ||
Standard_ShortReal & | Z2 | ||
) | const |