OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
visBase::HorizonSectionTile Class Reference
Inheritance diagram for visBase::HorizonSectionTile:
[legend]

Public Member Functions

 HorizonSectionTile (const visBase::HorizonSection &, const RowCol &origin)
 
 ~HorizonSectionTile ()
 
char getActualResolution () const
 
void updateAutoResolution (const osg::CullStack *)
 
void setPos (int row, int col, const Coord3 &)
 
void setPositions (const TypeSet< Coord3 > &)
 
void tesselateResolution (char, bool onlyifabsness)
 
void applyTesselation (char res)
 Should be called from rendering thread. More...
 
void ensureGlueTesselated ()
 
void setWireframeColor (Color &color)
 
void setTexture (const Coord &origin, const Coord &opposite)
 Sets origin and opposite in global texture. More...
 
void addTileTesselator (int res)
 
void addTileGlueTesselator ()
 
ObjectSet< TileResolutionData > & getResolutionData ()
 
void turnOnGlue (bool)
 
void setLineWidth (int)
 

Protected Member Functions

void setNeighbor (int neighbor, HorizonSectionTile *)
 The neighbor is numbered from 0 to 8. More...
 
void setResolution (char)
 
bool hasDefinedCoordinates (int idx) const
 
const HorizonSectionTilegetNeighborTile (int idx) const
 idx is bewteen 0 and 8 More...
 
void enableGeometryTypeDisplay (GeometryType type, bool yn)
 
void updatePrimitiveSets ()
 
bool getResolutionNormals (TypeSet< Coord3 > &) const
 
bool getResolutionTextureCoordinates (TypeSet< Coord > &) const
 
bool getResolutionPrimitiveSet (TypeSet< int > &, GeometryType) const
 
bool getResolutionPrimitiveSet (char res, TypeSet< int > &, GeometryType) const
 
bool getResolutionCoordinates (TypeSet< Coord3 > &) const
 
void dirtyGeometry ()
 
void setNrTexCoordLayers (int nrlayers)
 
void initTexCoordLayers ()
 
osg::Array * getNormals ()
 
osg::Array * getOsgVertexArray ()
 
void updateBBox ()
 
void buildOsgGeometries ()
 
void setActualResolution (char)
 
char getAutoResolution (const osg::CullStack *)
 
double calcGradient (int row, int col, const StepInterval< int > &rcrange, bool isrow)
 
void computeNormal (int nmidx, osg::Vec3 &)
 
void initvertices ()
 

Protected Attributes

HorizonSectionTileneighbors_ [9]
 
HorizonSectionTileGluerighttileglue_
 
HorizonSectionTileGluebottomtileglue_
 
osg::BoundingBox bbox_
 
const RowCol origin_
 
const HorizonSectionhrsection_
 
bool wireframedisplayed_
 
char desiredresolution_
 
int nrdefinedvertices_
 
bool resolutionhaschanged_
 
bool needsupdatebbox_
 
int tesselationqueueid_
 
char glueneedsretesselation_
 0 - updated, 1 - needs update, 2 - dont disp More...
 
osg::StateSet * stateset_
 
TypeSet< int > txunits_
 
ObjectSet< TileResolutionDatatileresolutiondata_
 
osg::Switch * osgswitchnode_
 
Threads::Mutex datalock_
 
bool updatenewpoint_
 
osg::Vec2f txorigin_
 
osg::Vec2f txoppsite_
 
std::vector< osg::Array * > txcoords_
 
osg::Array * normals_
 
osg::Array * osgvertices_
 
const double cosanglexinl_
 
const double sinanglexinl_
 

Friends

class HorizonSectionTilePosSetup
 
class TileTesselator
 
class HorizonSection
 
class TileResolutionData
 
class HorTilesCreatorAndUpdator
 
class HorizonSectionTileGlue
 
class HorizonTextureHandler
 
class TileCoordinatesUpdator
 
class HorizonTileResolutionTesselator
 

Additional Inherited Members

- Private Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Constructor & Destructor Documentation

visBase::HorizonSectionTile::HorizonSectionTile ( const visBase::HorizonSection ,
const RowCol origin 
)
visBase::HorizonSectionTile::~HorizonSectionTile ( )

Member Function Documentation

void visBase::HorizonSectionTile::addTileGlueTesselator ( )
void visBase::HorizonSectionTile::addTileTesselator ( int  res)
void visBase::HorizonSectionTile::applyTesselation ( char  res)

Should be called from rendering thread.

void visBase::HorizonSectionTile::buildOsgGeometries ( )
protected
double visBase::HorizonSectionTile::calcGradient ( int  row,
int  col,
const StepInterval< int > &  rcrange,
bool  isrow 
)
protected
void visBase::HorizonSectionTile::computeNormal ( int  nmidx,
osg::Vec3 &   
)
protected
void visBase::HorizonSectionTile::dirtyGeometry ( )
protected
void visBase::HorizonSectionTile::enableGeometryTypeDisplay ( GeometryType  type,
bool  yn 
)
protected

type 0 is triangle,1 is line, 2 is point, 3 is wire frame

void visBase::HorizonSectionTile::ensureGlueTesselated ( )
char visBase::HorizonSectionTile::getActualResolution ( ) const
char visBase::HorizonSectionTile::getAutoResolution ( const osg::CullStack *  )
protected
const HorizonSectionTile* visBase::HorizonSectionTile::getNeighborTile ( int  idx) const
protected

idx is bewteen 0 and 8

osg::Array* visBase::HorizonSectionTile::getNormals ( )
inlineprotected
osg::Array* visBase::HorizonSectionTile::getOsgVertexArray ( )
inlineprotected
bool visBase::HorizonSectionTile::getResolutionCoordinates ( TypeSet< Coord3 > &  ) const
protected
ObjectSet<TileResolutionData>& visBase::HorizonSectionTile::getResolutionData ( )
inline
bool visBase::HorizonSectionTile::getResolutionNormals ( TypeSet< Coord3 > &  ) const
protected
bool visBase::HorizonSectionTile::getResolutionPrimitiveSet ( TypeSet< int > &  ,
GeometryType   
) const
protected

don't use it, only for ABI.

bool visBase::HorizonSectionTile::getResolutionPrimitiveSet ( char  res,
TypeSet< int > &  ,
GeometryType   
) const
protected
bool visBase::HorizonSectionTile::getResolutionTextureCoordinates ( TypeSet< Coord > &  ) const
protected
bool visBase::HorizonSectionTile::hasDefinedCoordinates ( int  idx) const
protected

idx is the index of coordinates in the highest resolution vertices.

void visBase::HorizonSectionTile::initTexCoordLayers ( )
protected
void visBase::HorizonSectionTile::initvertices ( )
protected
void visBase::HorizonSectionTile::setActualResolution ( char  )
protected
void visBase::HorizonSectionTile::setLineWidth ( int  )
void visBase::HorizonSectionTile::setNeighbor ( int  neighbor,
HorizonSectionTile  
)
protected

The neighbor is numbered from 0 to 8.

void visBase::HorizonSectionTile::setNrTexCoordLayers ( int  nrlayers)
protected
void visBase::HorizonSectionTile::setPos ( int  row,
int  col,
const Coord3  
)
void visBase::HorizonSectionTile::setPositions ( const TypeSet< Coord3 > &  )
void visBase::HorizonSectionTile::setResolution ( char  )
protected

Resolution -1 means it is automatic.

void visBase::HorizonSectionTile::setTexture ( const Coord origin,
const Coord opposite 
)

Sets origin and opposite in global texture.

void visBase::HorizonSectionTile::setWireframeColor ( Color color)
void visBase::HorizonSectionTile::tesselateResolution ( char  ,
bool  onlyifabsness 
)
void visBase::HorizonSectionTile::turnOnGlue ( bool  )
void visBase::HorizonSectionTile::updateAutoResolution ( const osg::CullStack *  )
void visBase::HorizonSectionTile::updateBBox ( )
protected
void visBase::HorizonSectionTile::updatePrimitiveSets ( )
protected

Friends And Related Function Documentation

friend class HorizonSection
friend
friend class HorizonSectionTileGlue
friend
friend class HorizonSectionTilePosSetup
friend
friend class HorizonTextureHandler
friend
friend class HorizonTileResolutionTesselator
friend
friend class HorTilesCreatorAndUpdator
friend
friend class TileCoordinatesUpdator
friend
friend class TileResolutionData
friend
friend class TileTesselator
friend

Member Data Documentation

osg::BoundingBox visBase::HorizonSectionTile::bbox_
protected
HorizonSectionTileGlue* visBase::HorizonSectionTile::bottomtileglue_
protected
const double visBase::HorizonSectionTile::cosanglexinl_
protected
Threads::Mutex visBase::HorizonSectionTile::datalock_
protected
char visBase::HorizonSectionTile::desiredresolution_
protected
char visBase::HorizonSectionTile::glueneedsretesselation_
protected

0 - updated, 1 - needs update, 2 - dont disp

const HorizonSection& visBase::HorizonSectionTile::hrsection_
protected
bool visBase::HorizonSectionTile::needsupdatebbox_
protected
HorizonSectionTile* visBase::HorizonSectionTile::neighbors_[9]
protected
osg::Array* visBase::HorizonSectionTile::normals_
protected
int visBase::HorizonSectionTile::nrdefinedvertices_
protected
const RowCol visBase::HorizonSectionTile::origin_
protected
osg::Switch* visBase::HorizonSectionTile::osgswitchnode_
protected
osg::Array* visBase::HorizonSectionTile::osgvertices_
protected
bool visBase::HorizonSectionTile::resolutionhaschanged_
protected
HorizonSectionTileGlue* visBase::HorizonSectionTile::righttileglue_
protected
const double visBase::HorizonSectionTile::sinanglexinl_
protected
osg::StateSet* visBase::HorizonSectionTile::stateset_
protected
int visBase::HorizonSectionTile::tesselationqueueid_
protected
ObjectSet<TileResolutionData> visBase::HorizonSectionTile::tileresolutiondata_
protected
std::vector<osg::Array*> visBase::HorizonSectionTile::txcoords_
protected
osg::Vec2f visBase::HorizonSectionTile::txoppsite_
protected
osg::Vec2f visBase::HorizonSectionTile::txorigin_
protected
TypeSet<int> visBase::HorizonSectionTile::txunits_
protected
bool visBase::HorizonSectionTile::updatenewpoint_
protected
bool visBase::HorizonSectionTile::wireframedisplayed_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019