summaryrefslogtreecommitdiff
path: root/inc/Graphic3d_Texture1Dsegment.hxx
blob: 29a32b1432886f503a2bc36274249343d079da04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Graphic3d_Texture1Dsegment_HeaderFile
#define _Graphic3d_Texture1Dsegment_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Graphic3d_Texture1Dsegment_HeaderFile
#include <Handle_Graphic3d_Texture1Dsegment.hxx>
#endif

#ifndef _Standard_ShortReal_HeaderFile
#include <Standard_ShortReal.hxx>
#endif
#ifndef _Graphic3d_Texture1D_HeaderFile
#include <Graphic3d_Texture1D.hxx>
#endif
#ifndef _Handle_Graphic3d_StructureManager_HeaderFile
#include <Handle_Graphic3d_StructureManager.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Graphic3d_NameOfTexture1D_HeaderFile
#include <Graphic3d_NameOfTexture1D.hxx>
#endif
class Graphic3d_StructureManager;


//!  This class provides the implementation <br>
//! of a 1D texture applyable along a segment. <br>
//! You might use the SetSegment() method <br>
//! to set the way the texture is "streched" on facets. <br>
class Graphic3d_Texture1Dsegment : public Graphic3d_Texture1D {

public:

  //! Creates a texture from a file <br>
  Standard_EXPORT   Graphic3d_Texture1Dsegment(const Handle(Graphic3d_StructureManager)& VM,const Standard_CString FileName);
  //! Creates a texture from a predefined texture name set. <br>
  Standard_EXPORT   Graphic3d_Texture1Dsegment(const Handle(Graphic3d_StructureManager)& VM,const Graphic3d_NameOfTexture1D NOT);
  //! Sets the texture application bounds. Defines the way <br>
//! the texture is stretched across facets. <br>
//! Default values are <0.0, 0.0, 0.0> , <0.0, 0.0, 1.0> <br>
  Standard_EXPORT     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) ;
  //! Returns the values of the current segment X1, Y1, Z1 , X2, Y2, Z2. <br>
  Standard_EXPORT     void Segment(Standard_ShortReal& X1,Standard_ShortReal& Y1,Standard_ShortReal& Z1,Standard_ShortReal& X2,Standard_ShortReal& Y2,Standard_ShortReal& Z2) const;




  DEFINE_STANDARD_RTTI(Graphic3d_Texture1Dsegment)

protected:




private: 


Standard_ShortReal MyX1;
Standard_ShortReal MyY1;
Standard_ShortReal MyZ1;
Standard_ShortReal MyX2;
Standard_ShortReal MyY2;
Standard_ShortReal MyZ2;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif