OpendTect  6.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Geometry::ExplPolygonSurface Class Reference
Inheritance diagram for Geometry::ExplPolygonSurface:
[legend]

Public Member Functions

 ExplPolygonSurface (const PolygonSurface *, float zscale=1)
 
 ~ExplPolygonSurface ()
 
void display (bool polygons, bool body)
 
void setPolygonSurface (const PolygonSurface *)
 
const PolygonSurfacegetPolygonSurface () const
 
void setZScale (float)
 
bool arePolygonsDisplayed () const
 
bool isBodyDisplayed () const
 
bool needsUpdate () const
 
DAGTetrahedraTreegetTetrahedraTree () const
 
TypeSet< Coord3getSurfaceSamples () const
 
TypeSet< int > getSampleIndices () const
 
bool prepareBodyDAGTree ()
 
char positionToBody (const Coord3 point)
 
bool createsNormals () const
 
bool update (bool forceall, TaskRunner *)
 
- Public Member Functions inherited from Geometry::IndexedShape
virtual ~IndexedShape ()
 
virtual void setCoordList (Coord3List *cl, Coord3List *nl=0, Coord3List *texturecoords=0, bool createnew=true)
 
virtual void setRightHandedNormals (bool)
 
virtual bool createsTextureCoords () const
 
const ObjectSet< IndexedGeometry > & getGeometry () const
 
ObjectSet< IndexedGeometry > & getGeometry ()
 
const Coord3ListcoordList () const
 
Coord3ListcoordList ()
 
const Coord3ListnormalCoordList () const
 
Coord3ListnormalCoordList ()
 
const Coord3ListtextureCoordList () const
 
Coord3ListtextureCoordList ()
 
int getVersion () const
 
- Public 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Protected Member Functions

void updateGeometries ()
 
bool updateBodyDisplay ()
 
void removeAll (bool)
 
void addToGeometries (IndexedGeometry *)
 
void removeFromGeometries (const IndexedGeometry *)
 
void addToTrianglePrimitiveSet (Geometry::PrimitiveSet *, int, int, int)
 
void calcNormals (int nrtriangles, int idx1, int idx2, int idx3)
 
- Protected Member Functions inherited from Geometry::IndexedShape
 IndexedShape ()
 
void addVersion ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

bool displaypolygons_
 
bool displaybody_
 
bool needsupdate_
 
Coord3 scalefacs_
 
DAGTetrahedraTreetetrahedratree_
 
TypeSet< Coord3samples_
 
TypeSet< int > sampleindices_
 
const PolygonSurfacesurface_
 
IndexedGeometrybodytriangle_
 
IndexedGeometrypolygondisplay_
 
- Protected Attributes inherited from Geometry::IndexedShape
Threads::Lock geometrieslock_
 
ObjectSet< IndexedGeometrygeometries_
 
Coord3Listcoordlist_
 
Coord3Listnormallist_
 
Coord3Listtexturecoordlist_
 
bool righthandednormals_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

A triangulated representation of a polygonsurface

Constructor & Destructor Documentation

Geometry::ExplPolygonSurface::ExplPolygonSurface ( const PolygonSurface ,
float  zscale = 1 
)
Geometry::ExplPolygonSurface::~ExplPolygonSurface ( )

Member Function Documentation

void Geometry::ExplPolygonSurface::addToGeometries ( IndexedGeometry )
protected
void Geometry::ExplPolygonSurface::addToTrianglePrimitiveSet ( Geometry::PrimitiveSet ,
int  ,
int  ,
int   
)
protected
bool Geometry::ExplPolygonSurface::arePolygonsDisplayed ( ) const
inline
void Geometry::ExplPolygonSurface::calcNormals ( int  nrtriangles,
int  idx1,
int  idx2,
int  idx3 
)
protected
bool Geometry::ExplPolygonSurface::createsNormals ( ) const
inlinevirtual

Reimplemented from Geometry::IndexedShape.

void Geometry::ExplPolygonSurface::display ( bool  polygons,
bool  body 
)
const PolygonSurface* Geometry::ExplPolygonSurface::getPolygonSurface ( ) const
inline
TypeSet<int> Geometry::ExplPolygonSurface::getSampleIndices ( ) const
inline
TypeSet<Coord3> Geometry::ExplPolygonSurface::getSurfaceSamples ( ) const
inline
DAGTetrahedraTree* Geometry::ExplPolygonSurface::getTetrahedraTree ( ) const
inline
bool Geometry::ExplPolygonSurface::isBodyDisplayed ( ) const
inline
bool Geometry::ExplPolygonSurface::needsUpdate ( ) const
inlinevirtual

Reimplemented from Geometry::IndexedShape.

char Geometry::ExplPolygonSurface::positionToBody ( const Coord3  point)
bool Geometry::ExplPolygonSurface::prepareBodyDAGTree ( )
void Geometry::ExplPolygonSurface::removeAll ( bool  deep)
protectedvirtual

deep will remove all things from lists (coords,normals++). Non-deep will just leave them there

Reimplemented from Geometry::IndexedShape.

void Geometry::ExplPolygonSurface::removeFromGeometries ( const IndexedGeometry )
protected
void Geometry::ExplPolygonSurface::setPolygonSurface ( const PolygonSurface )
void Geometry::ExplPolygonSurface::setZScale ( float  )
bool Geometry::ExplPolygonSurface::update ( bool  forceall,
TaskRunner  
)
virtual

Reimplemented from Geometry::IndexedShape.

bool Geometry::ExplPolygonSurface::updateBodyDisplay ( )
protected
void Geometry::ExplPolygonSurface::updateGeometries ( )
protected

Member Data Documentation

IndexedGeometry* Geometry::ExplPolygonSurface::bodytriangle_
protected
bool Geometry::ExplPolygonSurface::displaybody_
protected
bool Geometry::ExplPolygonSurface::displaypolygons_
protected
bool Geometry::ExplPolygonSurface::needsupdate_
protected
IndexedGeometry* Geometry::ExplPolygonSurface::polygondisplay_
protected
TypeSet<int> Geometry::ExplPolygonSurface::sampleindices_
protected
TypeSet<Coord3> Geometry::ExplPolygonSurface::samples_
protected
Coord3 Geometry::ExplPolygonSurface::scalefacs_
protected
const PolygonSurface* Geometry::ExplPolygonSurface::surface_
protected
DAGTetrahedraTree* Geometry::ExplPolygonSurface::tetrahedratree_
protected

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