Package com.openinventor.volumeviz.nodes
Class SoUniformGridProjectionClipping
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoTexture
com.openinventor.inventor.nodes.SoTexture2
com.openinventor.volumeviz.nodes.SoUniformGridClipping
com.openinventor.volumeviz.nodes.SoUniformGridProjectionClipping
- All Implemented Interfaces:
SafeDisposable
Clips a volume with the depth map projection of a shape.
This class is an helper class derived from
SoUniformGridClipping. It defines its clipping texture by the depth map of the given sceneGraph in the given axis orientation.
Notes:
- Rendering the
sceneGraphon top of the clipped volume might result in z-fighting artefacts due to depth precision. In order to avoid this issue it is necessary to use aSoPolygonOffsetnode before the geometry to render. sceneGraphshould not contain any draggers or manipulators because they will become part of the clipping texture and might lead to unwanted results. As a workaround, you can put draggers outside ofsceneGraph, put anSoTransforminside yoursceneGraphand connect it to your dragger.- If
sceneGraphcontains holes, you should set theminFilterandmagFilterfields to NEAREST to avoid interpolation issues between holes and the true surface. - The inherited field
SoUniformGridClipping.undefinedValueis set to the default depth (i.e. 1).
See SoUniformGridClipping for detailed behavior and limitations.
- Since:
- Open Inventor 8.6
File format/default:
UniformGridProjectionClipping {
sceneGraph NULL axis Y extent -1,0,-1 1,1,1 filename "" image 0 0 0 wrapS CLAMP_TO_EDGE wrapT CLAMP_TO_EDGE model MODULATE enableCompressedTexture false blendColor 0 0 0 enableBorder false borderColor 0 0 0 0 maxAnisotropy 1.0 minFilter AUTO magFilter AUTO loadingMode AUTO useAutoMipmap false internalFormat AUTO_INTERNAL_FORMAT thickness 0 clipBelow false clipAbove true - See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
SoUniformGridClipping.AxisTypeNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoTexture2
SoTexture2.LoadingsNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoTexture
SoTexture.FileTypes, SoTexture.Filters, SoTexture.HW_Features, SoTexture.InternalFormats, SoTexture.Models, SoTexture.WrapTypeNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFNodeScene graph containing shapes to project on the orthogonal plane defined byaxisfield to generate theSoUniformGridClippingheight map texture.Fields inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
axis, clipAbove, clipBelow, extent, thickness, undefinedValueFields inherited from class com.openinventor.inventor.nodes.SoTexture2
filename, image, loadingMode, renderToTextureProperty, wrapTFields inherited from class com.openinventor.inventor.nodes.SoTexture
blendColor, borderColor, enableBorder, enableCompressedTexture, internalFormat, magFilter, maxAnisotropy, minFilter, model, wrapSFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
getMaxNumberOfUniformGrids, getMaxNumberOfUniformGrids, isSupported, isSupportedMethods inherited from class com.openinventor.inventor.nodes.SoTexture2
loadTextureMethods inherited from class com.openinventor.inventor.nodes.SoTexture
getBitmapFileType, isSupported, readTexture, readTexture, setBitmapFileTypeMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
sceneGraph
Scene graph containing shapes to project on the orthogonal plane defined byaxisfield to generate theSoUniformGridClippingheight map texture.
-
-
Constructor Details
-
SoUniformGridProjectionClipping
public SoUniformGridProjectionClipping()Constructor.
-
-
Method Details