OpendTect  7.0
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 ()
 
void addTileGlueTesselator ()
 
void addTileTesselator (int res)
 
void applyTesselation (char res)
 Should be called from rendering thread. More...
 
void ensureGlueTesselated ()
 
char getActualResolution () const
 
ObjectSet< TileResolutionData > & getResolutionData ()
 
void setLineWidth (int)
 
void setPos (int row, int col, const Coord3 &)
 
void setPositions (const TypeSet< Coord3 > &)
 
void setTexture (const Coord &origin, const Coord &opposite)
 Sets origin and opposite in global texture. More...
 
void setWireframeColor (OD::Color &color)
 
void tesselateResolution (char, bool onlyifabsness)
 
void turnOnGlue (bool)
 
void updateAutoResolution (const osg::CullStack *)
 

Protected Member Functions

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

Protected Attributes

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

Friends

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ HorizonSectionTile()

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

◆ ~HorizonSectionTile()

visBase::HorizonSectionTile::~HorizonSectionTile ( )

Member Function Documentation

◆ addTileGlueTesselator()

void visBase::HorizonSectionTile::addTileGlueTesselator ( )

◆ addTileTesselator()

void visBase::HorizonSectionTile::addTileTesselator ( int  res)

◆ applyTesselation()

void visBase::HorizonSectionTile::applyTesselation ( char  res)

Should be called from rendering thread.

◆ buildOsgGeometries()

void visBase::HorizonSectionTile::buildOsgGeometries ( )
protected

◆ calcGradient()

double visBase::HorizonSectionTile::calcGradient ( int  row,
int  col,
const StepInterval< int > &  rcrange,
bool  isrow 
)
protected

◆ computeNormal()

void visBase::HorizonSectionTile::computeNormal ( int  nmidx,
osg::Vec3 &   
)
protected

◆ dirtyGeometry()

void visBase::HorizonSectionTile::dirtyGeometry ( )
protected

◆ enableGeometryTypeDisplay()

void visBase::HorizonSectionTile::enableGeometryTypeDisplay ( GeometryType  type,
bool  yn 
)
protected

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

◆ ensureGlueTesselated()

void visBase::HorizonSectionTile::ensureGlueTesselated ( )

◆ getActualResolution()

char visBase::HorizonSectionTile::getActualResolution ( ) const

◆ getAutoResolution()

char visBase::HorizonSectionTile::getAutoResolution ( const osg::CullStack *  )
protected

◆ getNeighborTile()

const HorizonSectionTile* visBase::HorizonSectionTile::getNeighborTile ( int  idx) const
protected

idx is bewteen 0 and 8

◆ getNormals()

osg::Array* visBase::HorizonSectionTile::getNormals ( )
inlineprotected

◆ getOsgVertexArray()

osg::Array* visBase::HorizonSectionTile::getOsgVertexArray ( )
inlineprotected

◆ getResolutionCoordinates()

bool visBase::HorizonSectionTile::getResolutionCoordinates ( TypeSet< Coord3 > &  ) const
protected

◆ getResolutionData()

ObjectSet<TileResolutionData>& visBase::HorizonSectionTile::getResolutionData ( )
inline

◆ getResolutionNormals()

bool visBase::HorizonSectionTile::getResolutionNormals ( TypeSet< Coord3 > &  ) const
protected

◆ getResolutionPrimitiveSet()

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

◆ getResolutionTextureCoordinates()

bool visBase::HorizonSectionTile::getResolutionTextureCoordinates ( TypeSet< Coord > &  ) const
protected

◆ hasDefinedCoordinates()

bool visBase::HorizonSectionTile::hasDefinedCoordinates ( int  idx) const
protected

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

◆ initTexCoordLayers()

void visBase::HorizonSectionTile::initTexCoordLayers ( )
protected

◆ initvertices()

void visBase::HorizonSectionTile::initvertices ( )
protected

◆ setActualResolution()

void visBase::HorizonSectionTile::setActualResolution ( char  )
protected

◆ setLineWidth()

void visBase::HorizonSectionTile::setLineWidth ( int  )

◆ setNeighbor()

void visBase::HorizonSectionTile::setNeighbor ( int  neighbor,
HorizonSectionTile  
)
protected

The neighbor is numbered from 0 to 8.

◆ setNrTexCoordLayers()

void visBase::HorizonSectionTile::setNrTexCoordLayers ( int  nrlayers)
protected

◆ setPos()

void visBase::HorizonSectionTile::setPos ( int  row,
int  col,
const Coord3  
)

◆ setPositions()

void visBase::HorizonSectionTile::setPositions ( const TypeSet< Coord3 > &  )

◆ setResolution()

void visBase::HorizonSectionTile::setResolution ( char  )
protected

Resolution -1 means it is automatic.

◆ setTexture()

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

Sets origin and opposite in global texture.

◆ setWireframeColor()

void visBase::HorizonSectionTile::setWireframeColor ( OD::Color color)

◆ tesselateResolution()

void visBase::HorizonSectionTile::tesselateResolution ( char  ,
bool  onlyifabsness 
)

◆ turnOnGlue()

void visBase::HorizonSectionTile::turnOnGlue ( bool  )

◆ updateAutoResolution()

void visBase::HorizonSectionTile::updateAutoResolution ( const osg::CullStack *  )

◆ updateBBox()

void visBase::HorizonSectionTile::updateBBox ( )
protected

◆ updatePrimitiveSets()

void visBase::HorizonSectionTile::updatePrimitiveSets ( )
protected

Friends And Related Function Documentation

◆ HorizonSection

friend class HorizonSection
friend

◆ HorizonSectionTileGlue

friend class HorizonSectionTileGlue
friend

◆ HorizonSectionTilePosSetup

friend class HorizonSectionTilePosSetup
friend

◆ HorizonTextureHandler

friend class HorizonTextureHandler
friend

◆ HorizonTileResolutionTesselator

friend class HorizonTileResolutionTesselator
friend

◆ HorTilesCreatorAndUpdator

friend class HorTilesCreatorAndUpdator
friend

◆ TileCoordinatesUpdator

friend class TileCoordinatesUpdator
friend

◆ TileResolutionData

friend class TileResolutionData
friend

◆ TileTesselator

friend class TileTesselator
friend

Member Data Documentation

◆ bbox_

osg::BoundingBox visBase::HorizonSectionTile::bbox_
protected

◆ bottomtileglue_

HorizonSectionTileGlue* visBase::HorizonSectionTile::bottomtileglue_
protected

◆ cosanglexinl_

const double visBase::HorizonSectionTile::cosanglexinl_
protected

◆ datalock_

Threads::Mutex visBase::HorizonSectionTile::datalock_
protected

◆ desiredresolution_

char visBase::HorizonSectionTile::desiredresolution_
protected

◆ glueneedsretesselation_

char visBase::HorizonSectionTile::glueneedsretesselation_
protected

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

◆ hrsection_

const HorizonSection& visBase::HorizonSectionTile::hrsection_
protected

◆ needsupdatebbox_

bool visBase::HorizonSectionTile::needsupdatebbox_
protected

◆ neighbors_

HorizonSectionTile* visBase::HorizonSectionTile::neighbors_[9]
protected

◆ normals_

osg::Array* visBase::HorizonSectionTile::normals_
protected

◆ nrdefinedvertices_

int visBase::HorizonSectionTile::nrdefinedvertices_
protected

◆ origin_

const RowCol visBase::HorizonSectionTile::origin_
protected

◆ osgswitchnode_

osg::Switch* visBase::HorizonSectionTile::osgswitchnode_
protected

◆ osgvertices_

osg::Array* visBase::HorizonSectionTile::osgvertices_
protected

◆ resolutionhaschanged_

bool visBase::HorizonSectionTile::resolutionhaschanged_
protected

◆ righttileglue_

HorizonSectionTileGlue* visBase::HorizonSectionTile::righttileglue_
protected

◆ sinanglexinl_

const double visBase::HorizonSectionTile::sinanglexinl_
protected

◆ stateset_

osg::StateSet* visBase::HorizonSectionTile::stateset_
protected

◆ tesselationqueueid_

int visBase::HorizonSectionTile::tesselationqueueid_
protected

◆ tileresolutiondata_

ObjectSet<TileResolutionData> visBase::HorizonSectionTile::tileresolutiondata_
protected

◆ txcoords_

std::vector<osg::Array*> visBase::HorizonSectionTile::txcoords_
protected

◆ txoppsite_

osg::Vec2f visBase::HorizonSectionTile::txoppsite_
protected

◆ txorigin_

osg::Vec2f visBase::HorizonSectionTile::txorigin_
protected

◆ txunits_

TypeSet<int> visBase::HorizonSectionTile::txunits_
protected

◆ updatenewpoint_

bool visBase::HorizonSectionTile::updatenewpoint_
protected

◆ wireframedisplayed_

bool visBase::HorizonSectionTile::wireframedisplayed_
protected

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