1 #ifndef vistexturerect_h 2 #define vistexturerect_h 17 #include "visbasemod.h" 24 namespace osgGeo {
class TexturePlaneNode; }
29 class TextureChannels;
42 visBase::TextureChannels* getTextureChannels();
44 void freezeDisplay(
bool yn=true);
45 bool isDisplayFrozen() const;
51 void setTextureShift(const
Coord&);
55 Coord getTextureShift() const;
57 void setTextureGrowth(const Coord&);
62 Coord getTextureGrowth() const;
64 void setCenter(const
Coord3& center);
65 void setWidth(const
Coord3& width);
70 void setRotation(const
Coord3& spanvec0,
73 void setRotationAndWidth(const
Coord3& spanvec0,
77 const
Coord3& getSpanningVector(
int idx) const;
79 void swapTextureAxes(
bool yn=true);
80 bool areTextureAxesSwapped() const;
82 void setDisplayTransformation(const
mVisTrans*);
83 const mVisTrans* getDisplayTransformation() const;
91 RefMan<const mVisTrans> displaytrans_;
93 osgGeo::TexturePlaneNode* textureplane_;
101 int getNrTextures() const;
102 const
unsigned char* getTextureData() const;
109 void setEmpty() { coords_.
erase(); texcoords_.
erase();
113 bool getTextureDataInfo(
int tidx,
114 TextureDataInfo& texinfo)
const;
115 bool getTextureInfo(
int& width,
int& height,
#define mExpClass(module)
Definition: commondefs.h:160
Definition: vistexturechannels.h:50
#define mStruct(module)
Definition: commondefs.h:165
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
A cartesian coordinate in 2D space.
Definition: coord.h:25
static TextureRectangle * create()
Definition: vistexturerect.h:38
A TextureRectangle is a Rectangle with a datatexture. The data is set via setData.
Definition: vistexturerect.h:35
Set of (small) copyable elements.
Definition: commontypes.h:30
#define mVisTrans
Definition: visdata.h:31
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visannot.h:43
virtual void erase()
Definition: typeset.h:339
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72