 |
OpendTect
6.6
|
Go to the documentation of this file.
13 #include "geometrymod.h"
36 virtual int size()
const = 0;
37 virtual int get(
int)
const = 0;
40 virtual void append(
const int*,
int num) = 0;
59 virtual int pop() = 0;
60 virtual int set(
int,
int) = 0;
61 virtual void set(
const int*,
int num) = 0;
70 virtual int get(
int)
const;
73 virtual void append(
const int*,
int num);
78 virtual int set(
int,
int);
79 virtual void set(
const int*,
int num);
128 enum Type { Points,
Lines, Triangles, TriangleStrip, TriangleFan };
133 SetType settype =IndexSet,
bool large =
false);
148 void hide(
bool yn) { ishidden_ = yn; }
188 bool createnew =
true);
234 #define mGetIndexedShapeWriteLocker4Geometries() \
235 Threads::Locker lckr( geometrieslock_, Threads::Locker::WriteLock )
virtual void append(const int *, int num)=0
Coord3List * normallist_
Definition: indexedshape.h:222
bool isHidden() const
Definition: indexedshape.h:147
virtual int get(int) const
void removeFromGeometries(const IndexedGeometry *ig)
virtual void setRange(const Interval< int > &)=0
void appendCoordIndicesAsTriangleFan(const TypeSet< int > &)
const Coord3List * coordList() const
Definition: indexedshape.h:204
virtual void removeAll(bool deep)
Type
Definition: indexedshape.h:128
const Coord3List * normalCoordList() const
Definition: indexedshape.h:245
Coord3List * normalCoordList()
Definition: indexedshape.h:246
Coord3List * textureCoordList()
Definition: indexedshape.h:211
Threads::Lock lock_
Definition: indexedshape.h:157
Coord3List * coordList()
Definition: indexedshape.h:205
Definition: indexedshape.h:116
virtual void setCoordList(Coord3List *cl, Coord3List *nl=0, Coord3List *texturecoords=0, bool createnew=true)
Set of pointers to objects.
Definition: commontypes.h:31
Coord3List * normallist_
Definition: indexedshape.h:172
virtual bool createsTextureCoords() const
Definition: indexedshape.h:200
void removeAll(bool deep)
void setCoordIndices(const TypeSet< int > &)
Definition: arraytesselator.h:21
Threads::Lock geometrieslock_
Definition: indexedshape.h:218
Definition: indexedshape.h:126
virtual void setRightHandedNormals(bool)
Definition: indexedshape.h:192
Definition: indexedshape.h:182
virtual void getAll(TypeSet< int > &, bool) const
virtual void getAll(TypeSet< int > &, bool) const
#define mExpClass(module)
Definition: commondefs.h:177
bool ishidden_
Definition: indexedshape.h:169
virtual bool needsUpdate() const
Definition: indexedshape.h:189
int version_
Definition: indexedshape.h:231
static PrimitiveSet * create(bool indexed, bool large=false)
Coord3List * texturecoordlist_
Definition: indexedshape.h:171
@ Other
Definition: odinst.h:44
Definition: indexedshape.h:88
mDeclareEnumUtils(PrimitiveType)
Coord3List * normalCoordList()
Definition: indexedshape.h:208
~ExplicitIndexedShape()
Definition: indexedshape.h:243
PrimitiveSet * getCoordsPrimitiveSet()
Definition: indexedshape.h:153
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
virtual ~IndexedGeometry()
Definition: indexedshape.h:29
Coord3List * coordlist_
Definition: indexedshape.h:221
void appendCoordIndices(const TypeSet< int > &, bool reverse=true)
Definition: indexedshape.h:240
int addGeometry(IndexedGeometry *ig)
static RangePrimitiveSet * create()
int getVersion() const
Definition: indexedshape.h:213
Definition: indexedshape.h:99
SetType
Definition: indexedshape.h:129
IndexedGeometry(Type, Coord3List *coords=0, Coord3List *normals=0, Coord3List *texturecoords=0, SetType settype=IndexSet, bool large=false)
Type primitivetype_
Definition: indexedshape.h:160
@ TriangleStrip
Definition: indexedshape.h:33
void appendCoordIndicesAsTriangles(const TypeSet< int > &, bool)
virtual PrimitiveSet * doCreate(bool indexed, bool large)
Coord3List * textureCoordList()
Definition: indexedshape.h:249
virtual void append(const int *, int num)
virtual void setEmpty()=0
virtual void setPrimitiveType(PrimitiveType tp)
const ObjectSet< IndexedGeometry > & getGeometry() const
void hide(bool yn)
Definition: indexedshape.h:148
virtual int get(int) const =0
FixedString Lines()
Definition: keystrs.h:88
Class that can execute a task.
Definition: task.h:170
bool righthandednormals_
Definition: indexedshape.h:224
virtual void getAll(TypeSet< int > &, bool) const
ObjectSet< IndexedGeometry > geometries_
Definition: indexedshape.h:219
static PtrMan< PrimitiveSetCreator > creator_
Definition: indexedshape.h:111
virtual int indexOf(const int)=0
SetType getPrimitiveSetType() const
Definition: indexedshape.h:155
virtual void append(int)=0
Definition: indexedshape.h:66
PrimitiveType primitivetype_
Definition: indexedshape.h:49
Coord3List * texturecoordlist_
Definition: indexedshape.h:223
const Coord3List * textureCoordList() const
Definition: indexedshape.h:210
virtual PrimitiveSet * doCreate(bool indexed, bool large)=0
virtual int indexOf(const int)=0
virtual int indexOf(const int)
virtual void set(const int *, int num)=0
virtual int size() const =0
Coord3List * coordlist_
Definition: indexedshape.h:170
Geometry::PrimitiveSet * primitiveset_
Definition: indexedshape.h:173
@ Triangles
Definition: indexedshape.h:32
virtual Interval< int > getRange() const =0
virtual bool update(bool forceall, TaskRunner *=0)
Definition: indexedshape.h:190
ExplicitIndexedShape()
Definition: indexedshape.h:242
virtual void set(const int *, int num)
virtual ~PrimitiveSetCreator()
Definition: indexedshape.h:101
PrimitiveType
Definition: indexedshape.h:32
TypeSet< int > indexset_
Definition: indexedshape.h:83
void removeFromGeometries(int geoidx)
mRefCountImplNoDestructor(PrimitiveSet)
static IndexedPrimitiveSet * create(bool large)
Definition: indexedshape.h:54
Interface for a list of Coord3 with automatically maintained IDs.
Definition: positionlist.h:72
SetType primitivesettype_
Definition: indexedshape.h:161
const Coord3List * textureCoordList() const
Definition: indexedshape.h:248
virtual bool createsNormals() const
Definition: indexedshape.h:199
Type getPrimitiveType() const
Definition: indexedshape.h:154
static void setCreator(PrimitiveSetCreator *)
const Coord3List * normalCoordList() const
Definition: indexedshape.h:207
virtual int set(int, int)
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class.
Definition: threadlock.h:53
virtual PrimitiveType getPrimitiveType() const
ObjectSet< IndexedGeometry > & getGeometry()
void appendCoordIndicesAsTriangleStrips(const TypeSet< int > &)
virtual int set(int, int)=0
bool ischanged_
Definition: indexedshape.h:158
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021