Package com.openinventor.inventor.caches
Class SoBoundingBoxCache
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.caches.SoBaseContextCache
-
- com.openinventor.inventor.caches.SoCache
-
- com.openinventor.inventor.caches.SoBoundingBoxCache
-
- All Implemented Interfaces:
SafeDisposable
public class SoBoundingBoxCache extends SoCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoBoundingBoxCache(SoState state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SbXfBox3f
getBox()
Returns the current bbox value.SbVec3f
getCenter()
SbBox3f
getProjectedBox()
Returns BBox in local space.boolean
hasLinesOrPoints()
boolean
hasScreenSpaceBoundingBoxes()
boolean
isCenterSet()
void
set(SbXfBox3f boundingBox, boolean centerSet, SbVec3f centerPoint)
static void
setHasLinesOrPoints(SoState state)
static void
setHasScreenSpaceBoundingBoxes(SoState state, boolean flag)
-
Methods inherited from class com.openinventor.inventor.caches.SoCache
addCacheDependency, addElement, getCachedInvalidElement, getInvalidElement, invalidate, isValid, isValid
-
Methods inherited from class com.openinventor.inventor.caches.SoBaseContextCache
dispose, isContextDependent, isDisposable, release, setContextDependent, setContextDependent
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoBoundingBoxCache
public SoBoundingBoxCache(SoState state)
-
-
Method Detail
-
setHasLinesOrPoints
public static void setHasLinesOrPoints(SoState state)
-
setHasScreenSpaceBoundingBoxes
public static void setHasScreenSpaceBoundingBoxes(SoState state, boolean flag)
-
getProjectedBox
public SbBox3f getProjectedBox()
Returns BBox in local space.
-
getBox
public SbXfBox3f getBox()
Returns the current bbox value.
-
hasLinesOrPoints
public boolean hasLinesOrPoints()
-
hasScreenSpaceBoundingBoxes
public boolean hasScreenSpaceBoundingBoxes()
-
isCenterSet
public boolean isCenterSet()
-
getCenter
public SbVec3f getCenter()
-
-