Open CASCADE Technology 6.6.0
Public Member Functions
Graphic3d_Texture1Dsegment Class Reference

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>

Inheritance diagram for Graphic3d_Texture1Dsegment:
Inheritance graph
[legend]

Public Member Functions

 Graphic3d_Texture1Dsegment (const TCollection_AsciiString &theFileName)
 Creates a texture from a file

 Graphic3d_Texture1Dsegment (const Graphic3d_NameOfTexture1D theNOT)
 Creates a texture from a predefined texture name set.

void SetSegment (const Standard_ShortReal theX1, const Standard_ShortReal theY1, const Standard_ShortReal theZ1, const Standard_ShortReal theX2, const Standard_ShortReal theY2, const Standard_ShortReal theZ2)
 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 &theX1, Standard_ShortReal &theY1, Standard_ShortReal &theZ1, Standard_ShortReal &theX2, Standard_ShortReal &theY2, Standard_ShortReal &theZ2) const
 Returns the values of the current segment X1, Y1, Z1 , X2, Y2, Z2.


Constructor & Destructor Documentation

Graphic3d_Texture1Dsegment::Graphic3d_Texture1Dsegment ( const TCollection_AsciiString theFileName)
Graphic3d_Texture1Dsegment::Graphic3d_Texture1Dsegment ( const Graphic3d_NameOfTexture1D  theNOT)

Member Function Documentation

void Graphic3d_Texture1Dsegment::Segment ( Standard_ShortReal theX1,
Standard_ShortReal theY1,
Standard_ShortReal theZ1,
Standard_ShortReal theX2,
Standard_ShortReal theY2,
Standard_ShortReal theZ2 
) const
void Graphic3d_Texture1Dsegment::SetSegment ( const Standard_ShortReal  theX1,
const Standard_ShortReal  theY1,
const Standard_ShortReal  theZ1,
const Standard_ShortReal  theX2,
const Standard_ShortReal  theY2,
const Standard_ShortReal  theZ2 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines