OpendTect-6_4
6.4
|
Public Types | |
enum | BindType { BIND_OFF = 0, BIND_OVERALL, BIND_PER_PRIMITIVE_SET, BIND_PER_PRIMITIVE, BIND_PER_VERTEX } |
Public Member Functions | |
VertexShape () | |
virtual const char * | getClassName () const |
void | setPrimitiveType (Geometry::PrimitiveSet::PrimitiveType) |
Should be called before adding statesets. More... | |
Normals * | getNormals () |
const Normals * | getNormals () const |
void | setNormals (Normals *) |
TextureCoords * | getTextureCoords () |
const TextureCoords * | getTextureCoords () const |
void | setTextureCoords (TextureCoords *) |
virtual void | setCoordinates (Coordinates *coords) |
virtual Coordinates * | getCoordinates () |
virtual const Coordinates * | getCoordinates () const |
virtual void | setLineStyle (const OD::LineStyle &) |
void | removeSwitch () |
virtual void | setDisplayTransformation (const visBase::Transformation *) |
const visBase::Transformation * | getDisplayTransformation () const |
void | dirtyCoordinates () |
void | addPrimitiveSet (Geometry::PrimitiveSet *) |
void | removePrimitiveSet (const Geometry::PrimitiveSet *) |
void | removeAllPrimitiveSets () |
int | nrPrimitiveSets () const |
virtual void | touchPrimitiveSet (int) |
Geometry::PrimitiveSet * | getPrimitiveSet (int) |
void | setMaterial (Material *mt) |
void | materialChangeCB (CallBacker *) |
void | coordinatesChangedCB (CallBacker *) |
void | enableCoordinatesChangedCB (bool yn) |
void | useOsgAutoNormalComputation (bool) |
bool | useOsgAutoNormalComputation () const |
Coord3 | getOsgNormal (int) const |
void | setColorBindType (BindType) |
int | getNormalBindType () |
void | setNormalBindType (BindType) |
void | updatePartialGeometry (Interval< int >) |
void | useVertexBufferRender (bool) |
void | setTextureChannels (TextureChannels *) |
const unsigned char * | getTextureData (int &, int &, int &) const |
void | forceRedraw (bool=true) |
void | setAttribAndMode (osg::StateAttribute *) |
Public Member Functions inherited from visBase::Shape | |
Material * | getMaterial () |
const Material * | getMaterial () const |
void | setMaterialBinding (int) |
int | getMaterialBinding () const |
void | setRenderMode (RenderMode) |
void | enableRenderLighting (bool) |
int | usePar (const IOPar &) |
osg default render lighting is on More... | |
void | fillPar (IOPar &) const |
Public Member Functions inherited from visBase::VisualObject | |
virtual bool | getBoundingBox (Coord3 &min, Coord3 &max) const |
virtual void | setSceneEventCatcher (EventCatcher *) |
void | setSelectable (bool yn) |
bool | selectable () const |
NotifierAccess * | selection () |
NotifierAccess * | deSelection () |
virtual NotifierAccess * | rightClicked () |
const EventInfo * | rightClickedEventInfo () const |
const TypeSet< int > * | rightClickedPath () const |
Public Member Functions inherited from visBase::DataObject | |
virtual bool | isOK () const |
int | id () const |
void | setID (int nid) |
uiString | name () const |
virtual void | setName (const uiString &) |
osg::Node * | osgNode (bool skipswitch=false) |
const osg::Node * | osgNode (bool skipswitch=false) const |
void | enableTraversal (unsigned int mask, bool yn=true) |
bool | isTraversalEnabled (unsigned int mask) const |
SoNode * | getInventorNode () |
const SoNode * | getInventorNode () const |
virtual bool | turnOn (bool yn) |
virtual bool | isOn () const |
bool | isPickable (bool actively=true) const |
void | setPickable (bool actively, bool passively=true) |
virtual bool | rightClickable () const |
void | select () const |
void | deSelect () const |
void | updateSel () const |
virtual bool | isSelected () const |
virtual void | setRightHandSystem (bool yn) |
virtual bool | isRightHandSystem () const |
virtual void | setPixelDensity (float dpi) |
virtual float | getPixelDensity () const |
virtual const char * | errMsg () const |
bool | serialize (const char *filename, bool binary=false) |
void | setParent (DataObjectGroup *g) |
template<class T > | |
T * | addNodeState (T *ns) |
NodeState * | removeNodeState (NodeState *) |
NodeState * | getNodeState (int idx) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static VertexShape * | create () |
static void | initClass () |
static const char * | getStaticClassName () |
static const char * | sFactoryKeyword () |
Static Public Member Functions inherited from visBase::Shape | |
static int | cOverallMaterialBinding () |
static int | cPerVertexMaterialBinding () |
Static Public Member Functions inherited from visBase::DataObject | |
static int | getID (const osg::Node *) |
static float | getDefaultPixelDensity () |
static void | setVisualizationThread (const void *) |
Call only once from initialization. More... | |
static bool | isVisualizationThread () |
static void | requestSingleRedraw () |
static void | setCommonViewer (osgViewer::CompositeViewer *) |
static osgViewer::CompositeViewer * | getCommonViewer () |
Protected Member Functions | |
Normals * | gtNormals () const |
TextureCoords * | gtTextureCoords () const |
VertexShape (Geometry::PrimitiveSet::PrimitiveType, bool creategeode) | |
~VertexShape () | |
void | setupOsgNode () |
virtual void | addPrimitiveSetToScene (osg::PrimitiveSet *) |
virtual void | removePrimitiveSetFromScene (const osg::PrimitiveSet *) |
void | setUpdateVar (bool &var, bool yn) |
Protected Member Functions inherited from visBase::Shape | |
Material * | gtMaterial () const |
Shape () | |
virtual | ~Shape () |
Protected Member Functions inherited from visBase::VisualObject | |
void | triggerSel () |
void | triggerDeSel () |
void | triggerRightClick (const EventInfo *) |
VisualObject (bool selectable=false) | |
~VisualObject () | |
Protected Member Functions inherited from visBase::DataObject | |
virtual osg::StateSet * | getStateSet () |
void | doAddNodeState (NodeState *ns) |
DataObject () | |
template<class T > | |
T * | setOsgNode (T *t) |
Must be called during construction. More... | |
void | updateNodemask () |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
bool | needstextureupdate_ |
Will trigger redraw request if necessary. More... | |
Normals * | normals_ |
Coordinates * | coords_ |
TextureCoords * | texturecoords_ |
osg::Node * | node_ |
osg::Geode * | geode_ |
osg::Geometry * | osggeom_ |
bool | useosgsmoothnormal_ |
bool | usecoordinateschangedcb_ |
BindType | colorbindtype_ |
BindType | normalbindtype_ |
RefMan< TextureChannels > | channels_ |
NodeCallbackHandler * | nodecallbackhandler_ |
TextureCallbackHandler * | texturecallbackhandler_ |
Threads::Lock | redrawlock_ |
bool | isredrawing_ |
Geometry::PrimitiveSet::PrimitiveType | primitivetype_ |
Threads::Lock | lock_ |
ObjectSet< Geometry::PrimitiveSet > | primitivesets_ |
Protected Attributes inherited from visBase::Shape | |
Material * | material_ |
Protected Attributes inherited from visBase::DataObject | |
DataObjectGroup * | parent_ |
Private Member Functions | |
VertexShape & | operator= (const VertexShape &) |
VertexShape (const VertexShape &) | |
Static Private Member Functions | |
static visBase::DataObject * | createInternal () |
Additional Inherited Members | |
Static Protected Member Functions inherited from visBase::Shape | |
static const char * | sKeyOnOff () |
static const char * | sKeyTexture () |
static const char * | sKeyMaterial () |
|
private |
visBase::VertexShape::VertexShape | ( | ) |
|
protected |
|
protected |
void visBase::VertexShape::addPrimitiveSet | ( | Geometry::PrimitiveSet * | ) |
|
protectedvirtual |
Reimplemented in visBase::PolyLine3D.
void visBase::VertexShape::coordinatesChangedCB | ( | CallBacker * | ) |
|
inlinestatic |
|
inlinestaticprivate |
void visBase::VertexShape::dirtyCoordinates | ( | ) |
|
inline |
void visBase::VertexShape::forceRedraw | ( | bool | = true | ) |
|
virtual |
Reimplemented from visBase::DataObject.
Reimplemented in visBase::PolyLine3D, visBase::PolyLine, visBase::PointSet, visBase::Lines, and visBase::TriangleStripSet.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented from visBase::DataObject.
int visBase::VertexShape::getNormalBindType | ( | ) |
|
inline |
|
inline |
Coord3 visBase::VertexShape::getOsgNormal | ( | int | ) | const |
Geometry::PrimitiveSet* visBase::VertexShape::getPrimitiveSet | ( | int | ) |
|
static |
|
inline |
|
inline |
const unsigned char* visBase::VertexShape::getTextureData | ( | int & | , |
int & | , | ||
int & | |||
) | const |
|
protected |
|
protected |
|
static |
void visBase::VertexShape::materialChangeCB | ( | CallBacker * | ) |
int visBase::VertexShape::nrPrimitiveSets | ( | ) | const |
|
private |
void visBase::VertexShape::removeAllPrimitiveSets | ( | ) |
void visBase::VertexShape::removePrimitiveSet | ( | const Geometry::PrimitiveSet * | ) |
|
protectedvirtual |
Reimplemented in visBase::PolyLine3D.
void visBase::VertexShape::removeSwitch | ( | ) |
Will turn the object permanently on.
void visBase::VertexShape::setAttribAndMode | ( | osg::StateAttribute * | ) |
void visBase::VertexShape::setColorBindType | ( | BindType | ) |
|
virtual |
Reimplemented in visBase::PolyLine3D.
|
virtual |
Reimplemented from visBase::DataObject.
Reimplemented in visBase::PolyLine3D, visBase::PolyLine, and visBase::PointSet.
|
inlinevirtual |
Reimplemented in visBase::PolyLine3D, and visBase::PolyLine.
|
virtual |
Reimplemented from visBase::Shape.
void visBase::VertexShape::setNormalBindType | ( | BindType | ) |
void visBase::VertexShape::setNormals | ( | Normals * | ) |
void visBase::VertexShape::setPrimitiveType | ( | Geometry::PrimitiveSet::PrimitiveType | ) |
Should be called before adding statesets.
void visBase::VertexShape::setTextureChannels | ( | TextureChannels * | ) |
void visBase::VertexShape::setTextureCoords | ( | TextureCoords * | ) |
|
protected |
|
protected |
|
static |
|
inlinevirtual |
Reimplemented in visBase::PolyLine3D.
void visBase::VertexShape::updatePartialGeometry | ( | Interval< int > | ) |
void visBase::VertexShape::useOsgAutoNormalComputation | ( | bool | ) |
|
inline |
void visBase::VertexShape::useVertexBufferRender | ( | bool | ) |
, osg use vertex buffer to render and ignore displaylist false, osg use display list to render.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
lock protects primitiveset and osg color array
|
protected |
Will trigger redraw request if necessary.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019