 |
OpendTect
6.6
|
Go to the documentation of this file.
16 #include "visbasemod.h"
21 namespace Threads {
class Mutex; };
39 int nrNormals() const;
43 int nextID(
int previd) const;
44 void removeNormal(
int );
46 void addNormalValue(
int,const
Coord3&);
49 void setAll(const
float* vals,
int nmsz);
52 void setAll(const
Coord3* coords,
int nmsz);
55 void setAll(const
Coord3& coord,
int nmsz);
60 {
return transformation_; }
63 const osg::Array*
osgArray()
const {
return osgnormals_; }
75 friend class DoTransformation;
86 int nextID(
int previd)
const{
return normals_.nextID(previd); }
88 int add(
const Coord3& n ) {
return normals_.addNormal(n); }
89 void set(
int idx,
const Coord3& n) { normals_.setNormal(idx,n); }
90 void remove(
int idx) { normals_.removeNormal(idx); }
91 Coord3 get(
int idx)
const {
return normals_.getNormal(idx); }
93 { normals_.addNormalValue(idx,n ); }
95 {
return normals_.getNormal(idx).isDefined(); }
97 int size()
const {
return normals_.nrNormals(); }
Normals & normals_
Definition: visnormals.h:104
A cartesian coordinate in 3D space.
Definition: coord.h:72
Normals * getNormals()
Definition: visnormals.h:99
static Normals * create()
Definition: visnormals.h:34
osg::Array * osgArray()
Definition: visnormals.h:62
Is a lock that allows a thread to have exlusive rights to something.
Definition: thread.h:45
osg::Array * osgnormals_
Definition: visnormals.h:74
Definition: visannot.h:43
#define mExpClass(module)
Definition: commondefs.h:177
Definition: visnormals.h:80
TypeSet< int > unusednormals_
Definition: visnormals.h:69
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:63
void addValue(int idx, const Coord3 &n)
Adds value to existing value at id.
Definition: visnormals.h:92
NormalListAdapter(Normals &n)
Definition: visnormals.h:82
void remove(int idx)
Definition: visnormals.h:90
int nextID(int previd) const
Definition: visnormals.h:86
Threads::Mutex & mutex_
Definition: visnormals.h:70
Coord3 get(int idx) const
Definition: visnormals.h:91
int add(const Coord3 &n)
Return new id, or -1 if unsuccessful.
Definition: visnormals.h:88
const visBase::Transformation * transformation_
Definition: visnormals.h:72
void remove(const TypeSet< int > &)
May contain duplicates.
#define mVisTrans
Definition: visdata.h:28
#define mCreateDataObj(clss)
Definition: visdata.h:214
void set(int idx, const Coord3 &n)
Definition: visnormals.h:89
Interface for a list of Coord3 with automatically maintained IDs.
Definition: positionlist.h:72
~NormalListAdapter()
Definition: visnormals.h:102
int size() const
Definition: visnormals.h:97
bool isDefined(int idx) const
Definition: visnormals.h:94
interface to threads that should be portable.
Definition: atomic.h:23
Definition: visnormals.h:32
const osg::Array * osgArray() const
Definition: visnormals.h:63
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021