OpendTect
6.6
|
Public Types | |
enum | SetType { IndexSet = 0 , RangeSet } |
enum | Type { Points , Lines , Triangles , TriangleStrip , TriangleFan } |
Public Member Functions | |
IndexedGeometry (Type, Coord3List *coords=0, Coord3List *normals=0, Coord3List *texturecoords=0, SetType settype=IndexSet, bool large=false) | |
virtual | ~IndexedGeometry () |
void | appendCoordIndices (const TypeSet< int > &, bool reverse=true) |
PrimitiveSet * | getCoordsPrimitiveSet () |
SetType | getPrimitiveSetType () const |
Type | getPrimitiveType () const |
void | hide (bool yn) |
bool | isEmpty () const |
bool | isHidden () const |
void | removeAll (bool deep) |
void | setCoordIndices (const TypeSet< int > &) |
Public Attributes | |
bool | ischanged_ |
Threads::Lock | lock_ |
SetType | primitivesettype_ |
Type | primitivetype_ |
Protected Member Functions | |
void | appendCoordIndicesAsTriangleFan (const TypeSet< int > &) |
void | appendCoordIndicesAsTriangles (const TypeSet< int > &, bool) |
void | appendCoordIndicesAsTriangleStrips (const TypeSet< int > &) |
Protected Attributes | |
Coord3List * | coordlist_ |
bool | ishidden_ |
Coord3List * | normallist_ |
Geometry::PrimitiveSet * | primitiveset_ |
Coord3List * | texturecoordlist_ |
A geometry that is defined by a number of coordinates (defined outside the class), by specifying connections between the coordinates.
<>
Geometry::IndexedGeometry::IndexedGeometry | ( | Type | , |
Coord3List * | coords = 0 , |
||
Coord3List * | normals = 0 , |
||
Coord3List * | texturecoords = 0 , |
||
SetType | settype = IndexSet , |
||
bool | large = false |
||
) |
If coords or normals are given, used indices will be removed when object deleted or removeAll is called. If multiple geometries are sharing the coords/normals, this is probably not what you want. The bool "large:true" indicates creating a geometry set by uint primitive set type, otherwise set by ushort type
|
virtual |
void Geometry::IndexedGeometry::appendCoordIndices | ( | const TypeSet< int > & | , |
bool | reverse = true |
||
) |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
bool Geometry::IndexedGeometry::isEmpty | ( | ) | const |
|
inline |
void Geometry::IndexedGeometry::removeAll | ( | bool | deep | ) |
deep will remove all things from lists (coords,normals++). Non-deep will just leave them there
void Geometry::IndexedGeometry::setCoordIndices | ( | const TypeSet< int > & | ) |
|
protected |
|
mutable |
|
protected |
|
mutable |
|
protected |
|
protected |
SetType Geometry::IndexedGeometry::primitivesettype_ |
Type Geometry::IndexedGeometry::primitivetype_ |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022