OpendTect  7.0
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 ()
 
bool arePolygonsDisplayed () const
 
bool createsNormals () const override
 
void display (bool polygons, bool body)
 
const PolygonSurfacegetPolygonSurface () const
 
TypeSet< int > getSampleIndices () const
 
TypeSet< Coord3getSurfaceSamples () const
 
DAGTetrahedraTreegetTetrahedraTree () const
 
bool isBodyDisplayed () const
 
bool needsUpdate () const override
 
char positionToBody (const Coord3 point)
 
bool prepareBodyDAGTree ()
 
void setPolygonSurface (const PolygonSurface *)
 
void setZScale (float)
 
bool update (bool forceall, TaskRunner *) override
 
- Public Member Functions inherited from Geometry::IndexedShape
virtual ~IndexedShape ()
 
Coord3ListcoordList ()
 
const Coord3ListcoordList () const
 
virtual bool createsTextureCoords () const
 
ObjectSet< IndexedGeometry > & getGeometry ()
 
const ObjectSet< IndexedGeometry > & getGeometry () const
 
int getVersion () const
 
Coord3ListnormalCoordList ()
 
const Coord3ListnormalCoordList () const
 
virtual void setCoordList (Coord3List *cl, Coord3List *nl=0, Coord3List *texturecoords=0, bool createnew=true)
 
virtual void setRightHandedNormals (bool)
 
Coord3ListtextureCoordList ()
 
const Coord3ListtextureCoordList () 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 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 ()
 

Protected Member Functions

void addToGeometries (IndexedGeometry *)
 
void addToTrianglePrimitiveSet (Geometry::PrimitiveSet *, int, int, int)
 
void calcNormals (int nrtriangles, int idx1, int idx2, int idx3)
 
void removeAll (bool) override
 
void removeFromGeometries (const IndexedGeometry *)
 
bool updateBodyDisplay ()
 
void updateGeometries ()
 
- Protected Member Functions inherited from Geometry::IndexedShape
 IndexedShape ()
 
void addVersion ()
 

Protected Attributes

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

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

◆ ExplPolygonSurface()

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

◆ ~ExplPolygonSurface()

Geometry::ExplPolygonSurface::~ExplPolygonSurface ( )

Member Function Documentation

◆ addToGeometries()

void Geometry::ExplPolygonSurface::addToGeometries ( IndexedGeometry )
protected

◆ addToTrianglePrimitiveSet()

void Geometry::ExplPolygonSurface::addToTrianglePrimitiveSet ( Geometry::PrimitiveSet ,
int  ,
int  ,
int   
)
protected

◆ arePolygonsDisplayed()

bool Geometry::ExplPolygonSurface::arePolygonsDisplayed ( ) const
inline

◆ calcNormals()

void Geometry::ExplPolygonSurface::calcNormals ( int  nrtriangles,
int  idx1,
int  idx2,
int  idx3 
)
protected

◆ createsNormals()

bool Geometry::ExplPolygonSurface::createsNormals ( ) const
inlineoverridevirtual

Reimplemented from Geometry::IndexedShape.

◆ display()

void Geometry::ExplPolygonSurface::display ( bool  polygons,
bool  body 
)

◆ getPolygonSurface()

const PolygonSurface* Geometry::ExplPolygonSurface::getPolygonSurface ( ) const
inline

◆ getSampleIndices()

TypeSet<int> Geometry::ExplPolygonSurface::getSampleIndices ( ) const
inline

◆ getSurfaceSamples()

TypeSet<Coord3> Geometry::ExplPolygonSurface::getSurfaceSamples ( ) const
inline

◆ getTetrahedraTree()

DAGTetrahedraTree* Geometry::ExplPolygonSurface::getTetrahedraTree ( ) const
inline

◆ isBodyDisplayed()

bool Geometry::ExplPolygonSurface::isBodyDisplayed ( ) const
inline

◆ needsUpdate()

bool Geometry::ExplPolygonSurface::needsUpdate ( ) const
inlineoverridevirtual

Reimplemented from Geometry::IndexedShape.

◆ positionToBody()

char Geometry::ExplPolygonSurface::positionToBody ( const Coord3  point)

◆ prepareBodyDAGTree()

bool Geometry::ExplPolygonSurface::prepareBodyDAGTree ( )

◆ removeAll()

void Geometry::ExplPolygonSurface::removeAll ( bool  deep)
overrideprotectedvirtual

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

Reimplemented from Geometry::IndexedShape.

◆ removeFromGeometries()

void Geometry::ExplPolygonSurface::removeFromGeometries ( const IndexedGeometry )
protected

◆ setPolygonSurface()

void Geometry::ExplPolygonSurface::setPolygonSurface ( const PolygonSurface )

◆ setZScale()

void Geometry::ExplPolygonSurface::setZScale ( float  )

◆ update()

bool Geometry::ExplPolygonSurface::update ( bool  forceall,
TaskRunner  
)
overridevirtual

Reimplemented from Geometry::IndexedShape.

◆ updateBodyDisplay()

bool Geometry::ExplPolygonSurface::updateBodyDisplay ( )
protected

◆ updateGeometries()

void Geometry::ExplPolygonSurface::updateGeometries ( )
protected

Member Data Documentation

◆ bodytriangle_

IndexedGeometry* Geometry::ExplPolygonSurface::bodytriangle_
protected

◆ displaybody_

bool Geometry::ExplPolygonSurface::displaybody_
protected

◆ displaypolygons_

bool Geometry::ExplPolygonSurface::displaypolygons_
protected

◆ needsupdate_

bool Geometry::ExplPolygonSurface::needsupdate_
protected

◆ polygondisplay_

IndexedGeometry* Geometry::ExplPolygonSurface::polygondisplay_
protected

◆ sampleindices_

TypeSet<int> Geometry::ExplPolygonSurface::sampleindices_
protected

◆ samples_

TypeSet<Coord3> Geometry::ExplPolygonSurface::samples_
protected

◆ scalefacs_

Coord3 Geometry::ExplPolygonSurface::scalefacs_
protected

◆ surface_

const PolygonSurface* Geometry::ExplPolygonSurface::surface_
protected

◆ tetrahedratree_

DAGTetrahedraTree* Geometry::ExplPolygonSurface::tetrahedratree_
protected

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