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
public class SoUniformGridProjectionClipping extends SoUniformGridClipping
Clips a volume with the depth map projection of a shape. This class is an helper class derived fromSoUniformGridClipping
. It defines its clipping texture by the depth map of the givensceneGraph
in the givenaxis
orientation.Notes:
- Rendering the
sceneGraph
on 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 aSoPolygonOffset
node before the geometry to render. sceneGraph
should 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 anSoTransform
inside yoursceneGraph
and connect it to your dragger.- If
sceneGraph
contains holes, you should set theminFilter
andmagFilter
fields to NEAREST to avoid interpolation issues between holes and the true surface. - The inherited field
SoUniformGridClipping.undefinedValue
is 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:
SoUniformGridClipping
,SoVolumeClippingGroup
,SoPolygonOffset
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
SoUniformGridClipping.AxisType
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoTexture2
SoTexture2.Loadings
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoTexture
SoTexture.FileTypes, SoTexture.Filters, SoTexture.HW_Features, SoTexture.InternalFormats, SoTexture.Models, SoTexture.WrapType
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFNode
sceneGraph
Scene graph containing shapes to project on the orthogonal plane defined byaxis
field to generate theSoUniformGridClipping
height map texture.-
Fields inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
axis, clipAbove, clipBelow, extent, thickness, undefinedValue
-
Fields inherited from class com.openinventor.inventor.nodes.SoTexture2
filename, image, loadingMode, renderToTextureProperty, wrapT
-
Fields inherited from class com.openinventor.inventor.nodes.SoTexture
blendColor, borderColor, enableBorder, enableCompressedTexture, internalFormat, magFilter, maxAnisotropy, minFilter, model, wrapS
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoUniformGridProjectionClipping()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
GLRender(SoGLRenderAction action)
-
Methods inherited from class com.openinventor.volumeviz.nodes.SoUniformGridClipping
getMaxNumberOfUniformGrids, getMaxNumberOfUniformGrids, isSupported, isSupported
-
Methods inherited from class com.openinventor.inventor.nodes.SoTexture2
loadTexture
-
Methods inherited from class com.openinventor.inventor.nodes.SoTexture
getBitmapFileType, isSupported, readTexture, readTexture, setBitmapFileType
-
Methods 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, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
sceneGraph
public final SoSFNode sceneGraph
Scene graph containing shapes to project on the orthogonal plane defined byaxis
field to generate theSoUniformGridClipping
height map texture.
-
-
Method Detail
-
GLRender
public void GLRender(SoGLRenderAction action)
-
-