1 #ifndef vistexturepanelstrip_h 2 #define vistexturepanelstrip_h 17 #include "visbasemod.h" 22 namespace osgGeo {
class TexturePanelStripNode; }
27 class TextureChannels;
41 visBase::TextureChannels* getTextureChannels();
43 void freezeDisplay(
bool yn=true);
44 bool isDisplayFrozen() const;
51 const
TypeSet<Coord>& getPath() const;
53 void setPath2TextureMapping(
58 const
TypeSet<
float>& getPath2TextureMapping() const;
60 void setPathTextureShift(
float shift,
int startidx=0);
64 float getPathTextureShift() const;
65 float getPathTextureShiftStartIdx() const;
67 void setZRange(const
Interval<
float>&);
70 void unsetZRange2TextureMapping();
71 void setZRange2TextureMapping(
74 bool isZRange2TextureMappingSet() const;
75 Interval<
float> getZRange2TextureMapping() const;
77 void setZTextureShift(
float);
80 float getZTextureShift() const;
82 void swapTextureAxes(
bool yn=true);
83 bool areTextureAxesSwapped() const;
85 void smoothNormals(
bool yn=true);
86 bool areNormalsSmoothed() const;
88 void setDisplayTransformation(const
mVisTrans*);
89 const mVisTrans* getDisplayTransformation() const;
90 int getNrTextures() const;
91 const
unsigned char* getTextureData() const;
97 void setEmpty() { coords_.
erase(); texcoords_.
erase();
101 bool getTextureDataInfo(
int tidx,
102 TextureDataInfo& texinfo)
const;
103 bool getTextureInfo(
int& width,
int& height,
116 bool calcTextureCoordinates(
int,
123 double minx,
double xlen,
double minz,
126 void getMinAndLengthInfo(
double& minval,
double& len,
127 bool bz=
false)
const;
#define mExpClass(module)
Definition: commondefs.h:160
RefMan< const visBase::Transformation > displaytrans_
Definition: vistexturepanelstrip.h:109
Definition: vistexturechannels.h:50
#define mStruct(module)
Definition: commondefs.h:165
PtrMan< TypeSet< float > > pathtexoffsets_
Definition: vistexturepanelstrip.h:113
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
RefMan< TextureChannels > channels_
Definition: vistexturepanelstrip.h:111
A TexturePanelStrip is geometrically invariant in the z-direction. Its serially connected panels are ...
Definition: vistexturepanelstrip.h:34
A cartesian coordinate in 2D space.
Definition: coord.h:25
osgGeo::TexturePanelStripNode * osgpanelstrip_
Definition: vistexturepanelstrip.h:110
Interval of values.
Definition: commontypes.h:31
Set of (small) copyable elements.
Definition: commontypes.h:30
PtrMan< TypeSet< Coord > > pathcoords_
Definition: vistexturepanelstrip.h:112
static TexturePanelStrip * create()
Definition: vistexturepanelstrip.h:37
#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