Abstract base class for all database nodes. More...
#include <Inventor/nodes/SoNode.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns the type identifier for this specific instance. | |
virtual void | setOverride (const SbBool state) |
Turns the override flag on or off. | |
virtual SbBool | isOverride () const |
Returns the state of the override flag. | |
virtual SoNode * | copy (SbBool copyConnections=FALSE) const |
Creates and returns an exact copy of the node. | |
virtual SbBool | affectsState () const |
Returns TRUE if a node has an effect on the state during traversal. | |
virtual void | touch () |
Marks an instance as modified, simulating a change to it. | |
Public Member Functions inherited from SoFieldContainer | |
void | setToDefaults () |
Sets all fields in this object to their default values. | |
SbBool | hasDefaultValues () const |
Returns TRUE if all of the object's fields have their default values. | |
SbBool | fieldsAreEqual (const SoFieldContainer *fc) const |
Returns TRUE if this object's fields are exactly equal to fc's fields. | |
void | copyFieldValues (const SoFieldContainer *fc, SbBool copyConnections=FALSE) |
Copies the contents of fc's fields into this object's fields. | |
SoNONUNICODE SbBool | set (const char *fieldDataString) |
Sets one or more fields in this object to the values specified in the given string, which should be a string in the Open Inventor file format. | |
SbBool | set (const SbString &fieldDataString) |
Sets one or more fields in this object to the values specified in the given string, which should be a string in the Open Inventor file format. | |
void | get (SbString &fieldDataString) |
Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string. | |
virtual int | getFields (SoFieldList &list) const |
Appends references to all of this object's fields to resultList, and returns the number of fields appended. | |
virtual int | getAllFields (SoFieldList &list) const |
Returns a list of fields, including the eventIn's and eventOut's. | |
virtual SoField * | getField (const SbName &fieldName) const |
Returns a the field of this object whose name is fieldName. | |
virtual SoField * | getEventIn (const SbName &fieldName) const |
Returns a the eventIn with the given name. | |
virtual SoField * | getEventOut (const SbName &fieldName) const |
Returns the eventOut with the given name. | |
SbBool | getFieldName (const SoField *field, SbName &fieldName) const |
Returns the name of the given field in the fieldName argument. | |
SbBool | enableNotify (SbBool flag) |
Notification at this Field Container is enabled (if flag == TRUE) or disabled (if flag == FALSE). | |
SbBool | isNotifyEnabled () const |
Notification is the process of telling interested objects that this object has changed. | |
virtual void | setUserData (void *data) |
Sets application data. | |
void * | getUserData (void) const |
Gets user application data. | |
Public Member Functions inherited from SoBase | |
virtual SbName | getName () const |
Returns the name of an instance. | |
virtual void | setName (const SbName &name) |
Sets the name of an instance. | |
void | setSynchronizable (const bool b) |
Sets this to be a ScaleViz synchronizable object. | |
bool | isSynchronizable () const |
Gets the ScaleViz synchronizable state of this object. | |
Public Member Functions inherited from SoRefCounter | |
void | ref () const |
Adds a reference to an instance. | |
void | unref () const |
Removes a reference from an instance. | |
void | unrefNoDelete () const |
unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero. | |
int | getRefCount () const |
Returns current reference count. | |
void | lock () const |
lock this instance. | |
void | unlock () const |
unlock this instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static SoNode * | getByName (const SbName &name) |
A node's name can be set using SoBase::setName(). | |
static int | getByName (const SbName &name, SoNodeList &list) |
A node's name can be set using SoBase::setName(). | |
Static Public Member Functions inherited from SoFieldContainer | |
static SoType | getClassTypeId () |
Returns the type of this class. | |
Static Public Member Functions inherited from SoBase | |
static SoType | getClassTypeId () |
Returns type identifier for this class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Friends | |
class | SoTraversalPassImpl |
class | SoLdmValuationAction |
class | SoPath |
class | SoLightPath |
class | SoAction |
class | StringConcatCallback |
class | SoChildList |
class | SoCacheElement |
class | inventor::impl::SoCachedGroupImpl |
class | inventor::node::SoConstNode |
class | SoCallbackAction |
Abstract base class for all database nodes.
This is the abstract base class from which all scene graph node classes are derived.
SoWriteAction
Writes the contents of the node to the current SoOutput.
|
virtual |
Returns TRUE if a node has an effect on the state during traversal.
The default method returns TRUE. Node classes (such as SoSeparator) that isolate their effects from the rest of the graph override this method to return FALSE.
Reimplemented in SoInteractionKit, SoNodeKitListPart, SoSceneKit, SoSeparatorKit, SoArray, SoComputeShaderScheduler, SoInteractiveSwitch, SoMultipleCopy, SoMultiSwitch, SoShape, SoViewingCube, PoBase, MoMeshBaseRepresentation, and SoOrthoSlice.
Creates and returns an exact copy of the node.
If the node is a group, it copies the children as well. If copyConnections is TRUE (it is FALSE by default), any connections to (but not from) fields of the node are copied, as well. Note that multiple references to a node under the node to be copied will result in multiple references to the copy of that node. To be copyable, a custom node must define a default contructor. Note that OIV require that every custom node must define a default contructor.
Please also note that instance data other than Inventor fields and public children will not be copied by this method. If extra data needs to be copied as well, this method will have to be manually overridden.
Reimplemented in SoClipPlaneManip, and PoBase.
A node's name can be set using SoBase::setName().
This method allows nodes to be looked up by name. It returns the last node given the specified name.
|
static |
A node's name can be set using SoBase::setName().
This method allows nodes to be looked up by net name. It returns the number of nodes with the given net name, and adds to list those nodes.
|
static |
Returns the type identifier for this class.
|
virtual |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Reimplemented in SoCenterballDragger, SoDirectionalLightDragger, SoDragger, SoDragPointDragger, SoEllipsoidDragger, SoHandleBoxDragger, SoJackDragger, SoPointLightDragger, SoRotateCylindricalDragger, SoRotateDiscDragger, SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScale2UniformDragger, SoScaleUniformDragger, SoSpotLightDragger, SoTabBoxDragger, SoTabPlaneDragger, SoTrackballDragger, SoTransformBoxDragger, SoTransformerDragger, SoTranslate1Dragger, SoTranslate2Dragger, SoEllipseScreenDrawer, SoLassoScreenDrawer, SoPolygonScreenDrawer, SoPolyLineScreenDrawer, SoRectangleScreenDrawer, SoScreenDrawer, SoGeoCoordinate, SoGeoElevationGrid, SoGeoLocation, SoGeoLOD, SoGeoOrigin, SoGeoRender, PoBaseView, PoSceneView, PoView, SoCenterballManip, SoClipPlaneManip, SoDirectionalLightManip, SoHandleBoxManip, SoJackManip, SoPointLightManip, SoSpotLightManip, SoTabBoxManip, SoTrackballManip, SoTransformBoxManip, SoTransformerManip, SoTransformManip, SoAppearanceKit, SoBaseKit, SoCameraKit, SoInteractionKit, SoLightKit, SoNodeKitListPart, SoSceneKit, SoSeparatorKit, SoShapeKit, SoWrapperKit, SoAlgebraicCone, SoAlgebraicCylinder, SoAlgebraicShape, SoAlgebraicSphere, SoAlphaPolicy, SoAnnotation, SoAnnoText3, SoAnnoText3Property, SoAntiSquish, SoArray, SoAsciiText, SoBackground, SoBaseColor, SoBaseExtrusion, SoBBox, SoBevelProperty, SoBillboard, SoBlinker, SoBufferedShape, SoCallback, SoCamera, SoCircularExtrusion, SoClipPlane, SoColorIndex, SoColorMap, SoColorMask, SoComplexity, SoComputeShader, SoComputeShaderScheduler, SoCone, SoCoordinate3, SoCoordinate4, SoCSGShape, SoCube, SoCylinder, SoDepthBuffer, SoDepthOffset, SoDirectionalLight, SoDrawStyle, SoEdgeFlag, SoEnvironment, SoEventCallback, SoExtrusion, SoExtSelection, SoExtTexture2, SoFaceSet, SoFile, SoFont, SoFontStyle, SoFragmentShader, SoFullSceneAntialiasing, SoGeometryShader, SoGeoProjection, SoGLCallback, SoGradientBackground, SoGroup, SoImage, SoImageBackground, SoIndexedFaceSet, SoIndexedLineSet, SoIndexedMarkerSet, SoIndexedNurbsCurve, SoIndexedNurbsSurface, SoIndexedPointSet, SoIndexedQuadMesh, SoIndexedShape, SoIndexedTexture2, SoIndexedTriangleFanSet, SoIndexedTriangleSet, SoIndexedTriangleStripSet, SoInfo, SoInstanceParameter, SoInteractiveComplexity, SoInteractiveSwitch, SoLabel, SoLevelOfDetail, SoLevelOfSimplification, SoLight, SoLightModel, SoLinearProfile, SoLineSet, SoLocateHighlight, SoLOD, SoMarker, SoMarkerSet, SoMaterial, SoMaterialBinding, SoMatrixTransform, SoMultiPathSwitch, SoMultipleCopy, SoMultipleInstance, SoMultipleInstanceBase, SoMultiSwitch, SoNonIndexedShape, SoNormal, SoNormalBinding, SoNurbsBoundary, SoNurbsCurve, SoNurbsGroup, SoNurbsProfile, SoNurbsProperty, SoNurbsSurface, SoOrthographicCamera, SoOverlayGroup, SoPackedColor, SoPathSwitch, SoPattern, SoPendulum, SoPerspectiveCamera, SoPhysicalMaterial, SoPickStyle, SoPointLight, SoPointSet, SoPolygonOffset, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoProjection, SoQuadMesh, SoRenderToTarget, SoRenderToTextureProperty, SoResetTransform, SoRotation, SoRotationXYZ, SoRotor, SoScale, SoSelection, SoSeparator, SoShaderObject, SoShaderParameter, SoUniformShaderParameter, SoShaderParameter1f, SoShaderParameter1i, SoShaderParameter2f, SoShaderParameter2i, SoShaderParameter3f, SoShaderParameter3i, SoShaderParameter4f, SoShaderParameter4i, SoShaderParameterArray1f, SoShaderParameterArray1i, SoShaderParameterArray2f, SoShaderParameterArray2i, SoShaderParameterArray3f, SoShaderParameterArray3i, SoShaderParameterArray4f, SoShaderParameterArray4i, SoShaderParameterMatrix, SoShaderParameterMatrix3, SoShaderParameterMatrixArray, SoShaderStateMatrixParameter, SoVertexShaderParameter, SoVertexShaderParameter1f, SoVertexShaderParameter1s, SoVertexShaderParameter2f, SoVertexShaderParameter2s, SoVertexShaderParameter3f, SoVertexShaderParameter3s, SoVertexShaderParameter4f, SoVertexShaderParameter4i, SoVertexShaderParameter4s, SoVertexShaderParameter4b, SoVertexShaderParameter4ui, SoVertexShaderParameter4us, SoVertexShaderParameter4ub, SoVertexShaderParameterMatrix, SoVertexShaderParameterBufferObject, SoShaderParameterBufferObject, SoShaderParameterImage, SoShaderProgram, SoShadowGroup, SoShadowStyle, SoShape, SoShapeHints, SoShuttle, SoSphere, SoSpotLight, SoStereoCamera, SoSurroundScale, SoSwitch, SoTessellationControlShader, SoTessellationEvaluationShader, SoText2, SoText3, SoTextProperty, SoTexture, SoTexture2, SoTexture2Transform, SoTexture3, SoTexture3Transform, SoTextureCombiner, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateBinding, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateFunction, SoTextureCoordinateNormalMap, SoTextureCoordinateObject, SoTextureCoordinatePlane, SoTextureCoordinateReflectionMap, SoTextureCubeMap, SoTextureMatrix, SoTextureUnit, SoTransform, SoTransformation, SoTransformProjection, SoTransformSeparator, SoTranslation, SoTriangleSet, SoTriangleStripSet, SoUnits, SoVertexAttribFeedback, SoVertexFlag, SoVertexProperty, SoVertexShader, SoVertexShape, SoViewport, SoViewportClipping, SoWWWAnchor, SoWWWInline, SoViewingCube, SoROIManip, SoDataCompositor, SoDataRange, SoDataSet, SoDataSetId, SoGeometryPriority, SoHardwareQuery, SoLdmShape, SoMultiDataSeparator, SoROI, SoTransferFunction, DicomInfo, Gnomon, Magnifier, ObliqueSliceBorder, OrthoSliceBorder, PlaneBoxIntersection, PlaneGeometryIntersection, Ruler, SceneView, SliceOrientationMarkers, SliceScaleBar, TextBox, ViewManager, Po3DdataMaster, PoBaseStreamLine, PoCellEdges, PoCellFacets, PoCellIndices, PoCellShape, PoMesh, PoMesh2D, PoMesh2DVec, PoMesh3D, PoMesh3DVec, PoMesh3DVecCrossSection, PoMesh3DVecGridCrossSection, PoMeshContouring, PoMeshCrossContour, PoMeshCrossSection, PoMeshFilled, PoMeshLevelSurf, PoMeshLimit, PoMeshLines, PoMeshProbePoint, PoMeshSides, PoMeshSkeleton, PoMeshSkin, PoStreamLine, PoStreamLineMotion, PoStreamParticleMotion, PoStreamPointMotion, PoStreamSphereMotion, PoStreamSurface, PoStreamTadpoleMotion, PoAngularAxis, PoArrow, PoArrow3, PoAutoCubeAxis, PoAutoValueLegend, PoAxis, PoBar, PoBase, PoBaseAxis, PoBiErrorPointField, PoCartesianAxis, PoChart, PoCircle, PoCircle3, PoCircle3CenterRadius, PoCircle3ThreePoints, PoCircleArc, PoCircleArc3, PoCircleArc3CtrPtAngle, PoCircleArc3CtrTwoPts, PoCircleArc3ThreePts, PoCircleArcCtrPtAngle, PoCircleArcCtrRadTwoAngle, PoCircleArcCtrTwoPts, PoCircleArcThreePts, PoCircleCenterRadius, PoCircleThreePoints, PoConicBar, PoCoordinateSystemAxis, PoCurve, PoCurve3, PoCurveFilling, PoCurveLine, PoCylindricalBar, PoErrorCurve, PoErrorPointField, PoGenAxis, PoGeneralizedBar, PoGeneralizedScatter, PoGraphMaster, PoGroup2Axis, PoGroup3Axis3, PoGroup4Axis, PoGroup6Axis3, PoHighLowClose, PoHistogram, PoItemLegend, PoLabel, PoLabelField, PoLegend, PoLinearAxis, PoLinearBar, PoLinearValueLegend, PoLogAxis, PoMultipleHistogram, PoNonLinearValueLegend1, PoNonLinearValueLegend2, PoNonLinearValueLegend3, PoParallelogram, PoParallelogram3, PoPieChart, PoPieChart2D, PoPieChart3D, PoPieChartRep, PoPointsFieldBars, PoPolarAxis, PoPolarLinAxis, PoPolarLogAxis, PoProfileBar, PoRectangle, PoRibbon, PoScatter, PoSingleHistogram, PoTimeAxis, PoTube, PoValuedMarkerField, PoValueLegend, PoBevelEdge, PoCartesianGrid2D, PoCartesianGrid3D, PoCellFilter, PoCircularProfile, PoCoordinateListFilter, PoDataMapping, PoDateFormatMapping, PoDomain, PoEllipticProfile, PoHexahedronMesh3D, PoIndexedMesh2D, PoIndexedMesh3D, PoIndexListFilter, PoIntervalCellFilter, PoIrregularMesh1D, PoIsovaluesList, PoLabelHints, PoLinearDataMapping, PoMesh1DFilter, PoMesh1DHints, PoMeshProperty, PoMiscTextAttr, PoNode, PoNonLinearDataMapping, PoNonLinearDataMapping2, PoNumericDisplayFormat, PoParalCartesianGrid2D, PoParalCartesianGrid3D, PoPeriodFilter, PoPeriodIndexFilter, PoPolarGrid2D, PoProfile, PoProfileCoordinate2, PoQuadrangleMesh2D, PoRegularCartesianGrid2D, PoRegularCartesianGrid3D, PoRegularMesh1D, PoSquareProfile, PoTetrahedronMesh3D, PoTriangleMesh2D, MoActionNode, MoCellFilter, MoColorMapping, MoCombineColorMapping, MoCustomColorMapping, MoDataBinding, MoDrawStyle, MoLegend, MoLevelColorMapping, MoLinearColorMapping, MoMaterial, MoMesh, MoMeshAnnotatedIsoline, MoMeshBaseRepresentation, MoMeshCellShape, MoMeshClipLine, MoMeshClipPoint, MoMeshCylinderSlice, MoMeshElevatedPlaneSlice, MoMeshFenceSlice, MoMeshGridPlaneSlice, MoMeshInterpolatedLogicalSlice, MoMeshIsoline, MoMeshIsosurface, MoMeshLine, MoMeshLineRepresentation, MoMeshLogicalSlice, MoMeshOutline, MoMeshPlaneSlice, MoMeshPointProbe, MoMeshRepresentation, MoMeshSkin, MoMeshSlab, MoMeshSphereSlice, MoMeshStreamline, MoMeshSurface, MoMeshSurfaceRepresentation, MoMeshVector, MoPredefinedColorMapping, MoScalarSet, MoScalarSetI, MoScalarSetIj, MoScalarSetIjk, MoStringSet, MoTessellator, MoVec3SetI, MoVec3SetIj, MoVec3SetIjk, SoRemoteVizClient, SoOrthoSliceDragger, SoFenceSlice, SoHeightFieldGeometry, SoHeightFieldProperty, SoHeightFieldPropertyMask, SoHeightFieldRender, SoObliqueSlice, SoOffscreenVolumeRender, SoOrthoSlice, SoSlice, SoUniformGridClipping, SoUniformGridProjectionClipping, SoVolumeBufferedShape, SoVolumeClippingGroup, SoVolumeData, SoVolumeDataDrawStyle, SoVolumeFaceSet, SoVolumeGroup, SoVolumeIndexedFaceSet, SoVolumeIndexedTriangleStripSet, SoVolumeIsosurface, SoVolumeMask, SoVolumeMaskGroup, SoVolumeRender, SoVolumeRenderingPhysicalQuality, SoVolumeRenderingQuality, SoVolumeShader, SoVolumeShape, SoVolumeSkin, SoVolumeTransform, and SoVolumeTriangleStripSet.
|
inlinevirtual |
Returns the state of the override flag.
Reimplemented in SoBaseColor, SoColorIndex, SoComplexity, SoDepthBuffer, SoDrawStyle, SoEnvironment, SoFont, SoFullSceneAntialiasing, SoLightModel, SoMaterial, SoMaterialBinding, SoPackedColor, SoPattern, SoPhysicalMaterial, SoPickStyle, SoPolygonOffset, SoShapeHints, SoTextProperty, SoTexture, and SoVertexProperty.
|
inlinevirtual |
Turns the override flag on or off.
The following property nodes are affected by the override flag: SoBaseColor, SoColorIndex, SoComplexity, SoDepthBuffer, SoDrawStyle, SoEnvironment, SoFont, SoFullSceneAntialiasing, SoLightModel, SoMaterial, SoPhysicalMaterial, SoMaterialBinding, SoPackedColor, SoPattern, SoPickStyle, SoPolygonOffset, SoShapeHints, SoVertexProperty, SoTextProperty.
Every node has an override flag associated with it. The override flag is a powerful mechanism typically used (sparingly) near the top of a scene graph. When this flag is set, any nodes of the same type encountered later in the graph are ignored even if they also have their own override flag set. For example, you might insert a line-style SoDrawStyle node at the top of a graph to ensure that the whole scene is drawn as wireframe objects, regardless of drawing styles specified lower in the scene graph. Use the setOverride() method to set and reset the override flag. The isOverride() method returns the state of the override flag.
Normally, the override flag is not used within a scene graph for modeling. Use it in applications where you need to specify a temporary change to the whole graph.
Note: The override flag is not written to a file.
Setting the override flag on a node whose field values are not inherited (for example on a sphere with a radius of 7) has no effect on other nodes in the graph of that type.
Reimplemented in SoBaseColor, SoColorIndex, SoComplexity, SoDepthBuffer, SoDrawStyle, SoEnvironment, SoFont, SoFullSceneAntialiasing, SoLightModel, SoMaterial, SoMaterialBinding, SoPackedColor, SoPattern, SoPhysicalMaterial, SoPickStyle, SoPolygonOffset, SoShapeHints, SoTextProperty, SoTexture, and SoVertexProperty.
|
virtual |
Marks an instance as modified, simulating a change to it.
This will notify auditors (parent nodes, connected engines, and so on) of a change to this object and cause attached sensors to be triggered.
Reimplemented from SoBase.
|
friend |
|
friend |