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

Public Member Functions

virtual ~IndexedShape ()
 
virtual void setCoordList (Coord3List *cl, Coord3List *nl=0, Coord3List *texturecoords=0, bool createnew=true)
 
virtual bool needsUpdate () const
 
virtual bool update (bool forceall, TaskRunner *=0)
 
virtual void setRightHandedNormals (bool)
 
virtual void removeAll (bool deep)
 
virtual bool createsNormals () const
 
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
 

Protected Member Functions

 IndexedShape ()
 
void addVersion ()
 

Protected Attributes

Threads::Lock geometrieslock_
 
ObjectSet< IndexedGeometrygeometries_
 
Coord3Listcoordlist_
 
Coord3Listnormallist_
 
Coord3Listtexturecoordlist_
 
bool righthandednormals_
 

Private Attributes

int version_
 

Detailed Description

Defines a shape with coordinates and connections between them. The shape is defined in an ObjectSet of IndexedGeometry. All IndexedGeometry share one common coordinate and normal list.

Constructor & Destructor Documentation

virtual Geometry::IndexedShape::~IndexedShape ( )
virtual
Geometry::IndexedShape::IndexedShape ( )
protected

Member Function Documentation

void Geometry::IndexedShape::addVersion ( )
protected

Should be called every time object is changed.

const Coord3List* Geometry::IndexedShape::coordList ( ) const
inline
Coord3List* Geometry::IndexedShape::coordList ( )
inline
virtual bool Geometry::IndexedShape::createsNormals ( ) const
inlinevirtual
virtual bool Geometry::IndexedShape::createsTextureCoords ( ) const
inlinevirtual
const ObjectSet<IndexedGeometry>& Geometry::IndexedShape::getGeometry ( ) const
ObjectSet<IndexedGeometry>& Geometry::IndexedShape::getGeometry ( )
int Geometry::IndexedShape::getVersion ( ) const
inline
virtual bool Geometry::IndexedShape::needsUpdate ( ) const
inlinevirtual
const Coord3List* Geometry::IndexedShape::normalCoordList ( ) const
inline
Coord3List* Geometry::IndexedShape::normalCoordList ( )
inline
virtual void Geometry::IndexedShape::removeAll ( bool  deep)
virtual

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

Reimplemented in Geometry::ExplFaultStickSurface, Geometry::ExplPolygonSurface, Geometry::ExplPlaneIntersection, and ExplicitMarchingCubesSurface.

virtual void Geometry::IndexedShape::setCoordList ( Coord3List cl,
Coord3List nl = 0,
Coord3List texturecoords = 0,
bool  createnew = true 
)
virtual
virtual void Geometry::IndexedShape::setRightHandedNormals ( bool  )
inlinevirtual
const Coord3List* Geometry::IndexedShape::textureCoordList ( ) const
inline
Coord3List* Geometry::IndexedShape::textureCoordList ( )
inline
virtual bool Geometry::IndexedShape::update ( bool  forceall,
TaskRunner = 0 
)
inlinevirtual

Member Data Documentation

Coord3List* Geometry::IndexedShape::coordlist_
protected
ObjectSet<IndexedGeometry> Geometry::IndexedShape::geometries_
protected
Threads::Lock Geometry::IndexedShape::geometrieslock_
protected
Coord3List* Geometry::IndexedShape::normallist_
protected
bool Geometry::IndexedShape::righthandednormals_
protected
Coord3List* Geometry::IndexedShape::texturecoordlist_
protected
int Geometry::IndexedShape::version_
private

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