public class PoBase extends SoBaseKit
PoDomain
).
Be careful, do not use the method rebuild()
if you use MeshViz property nodes (PoDomain
, PoMeshProperty
,...), because a representation (axis, legend, 2D and 3D mesh representation,..) depends on the current inherited state. If you need to do an extra work after a representation has been built, do it in a post-rebuild callback (cf PoBase.addPostRebuildCallback).
Modifier and Type | Class and Description |
---|---|
static class |
PoBase.NodeWriteFormats
Type of write format.
|
static class |
PoBase.TextTypes
Type of Text.
|
static class |
PoBase.UpdateMethodTypes
Type of update method.
|
SoNode.RenderModes
Inventor.ConstructorCommand
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
addPostRebuildCallback(PoRebuildCB cb,
java.lang.Object data)
Add a callback function to call when the node kit is rebuilt.
|
void |
addPreRebuildCallback(PoRebuildCB cb,
java.lang.Object data)
Add a callback function to call when the node kit is rebuilt.
|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
PbDomain |
getDomain()
Gets a reference to a
PbDomain object used to define the data limits of the graphics to be generated. |
static PoBase.NodeWriteFormats |
getNodeWriteFormat()
Gets the node write format.
|
static PoBase.TextTypes |
getTextType()
Gets the type of text used.
|
PoBase.UpdateMethodTypes |
getUpdateMethod()
Gets update method.
|
boolean |
isBuilt()
Indicates if the node kit has been built at least once.
|
boolean |
isModified()
Return true, if the kit has been modified, else otherwise.
|
static boolean |
isVRML2Mode()
Gets the VRML2 mode (true = VRML2 mode, false Inventor mode)
|
void |
rebuild()
Forces the node kit to be rebuilt immediately.
|
void |
setDomain(PbDomain dom)
Sets a reference to a
PbDomain object used to define the data limits of the graphics to be generated. |
static void |
setNodeWriteFormat(PoBase.NodeWriteFormats format)
Sets the node write format.
|
static void |
setTextType(PoBase.TextTypes type)
Sets the type of text used.
|
void |
setUpdateMethod(PoBase.UpdateMethodTypes type)
Sets scene graph update method.
|
static void |
setVRML2Mode(boolean flag)
Set the VRML2 mode.
|
void |
touchKit()
Indicates the node kit is modified.
|
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public void addPreRebuildCallback(PoRebuildCB cb, java.lang.Object data)
public void addPostRebuildCallback(PoRebuildCB cb, java.lang.Object data)
public boolean isBuilt()
public static PoBase.TextTypes getTextType()
public static void setNodeWriteFormat(PoBase.NodeWriteFormats format)
FOLD_NODE_WRITE_FORMAT
indicates that all nodes will not be unfolded when they are written with a SoWriteAction
. UNFOLD_NODE_WRITE_FORMAT
indicates on the contrary, that all nodes will be unfolded when they are written with a SoWriteAction
. Be careful, when using the format FOLD_NODE_WRITE_FORMAT
, the basic objects (Pb objects) are not written in .iv file. In this case (and if you need to save this information), use the corresponding property node (for instance, replace the PbDomain
object with the PoDomain
property node).
(FOLD_NODE_WRITE_FORMAT
by default).
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public static void setTextType(PoBase.TextTypes type)
SO_TEXT3
: All texts used for representations are SoText3
nodes.
SO_ANNO_TEXT3
: All text used for representations are SoAnnoText3
(this type of text has more attributes than SoText3
which can be specified with the property node SoAnnoText3Property
).
type = SO_ANNO_TEXT3
by default.
public static PoBase.NodeWriteFormats getNodeWriteFormat()
public static void setVRML2Mode(boolean flag)
setTextType()
, all texts used are SoAsciiText
in order to minimize VRML2 file size (other text types are tessellated during a VRML2 conversion which increases VRML2 file size).
SoLightModel.BASE_COLOR
(There is no equivalence in VRML2), the emissive component is set at the same value as the diffuse components (By this way, we simulate SoLightModel.BASE_COLOR
light model).
SoAnnotation
node solves their problems, but there is no equivalence in VRML2).
This mode is inactive by default.
public void touchKit()
public PbDomain getDomain()
PbDomain
object used to define the data limits of the graphics to be generated.public void rebuild()
rebuild()
if you use MeshViz property nodes (PoDomain
, PoMeshProperty
,...), because a representation (axis, legend, 2D and 3D mesh representation,..) depends on the current inherited state. If you need to do an extra work after a representation has been built, do it in a post-rebuild callback (cf PoBase.addPostRebuildCallback).public boolean isModified()
public void setUpdateMethod(PoBase.UpdateMethodTypes type)
UPDATE_METHOD_IMMEDIATE
indicates that each time a Graph Master or 3D Data Master object is modified, the scene graph must be updated. UPDATE_METHOD_ON_ACTION
indicates that the scene graph does not have to be modified when a Graph Master or 3D Data Master object changes; the scene graph being modified when it is necessary (before a rendering action for instance). The faster method is UPDATE_METHOD_ON_ACTION
and is particularly useful for representations where more than one field has to be set to obtain the definitive representation, because with the other method, each time a field is changed, the representation is rebuilt. (UPDATE_METHOD_ON_ACTION
by default).public static boolean isVRML2Mode()
public void setDomain(PbDomain dom)
public PoBase.UpdateMethodTypes getUpdateMethod()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com