SceneInterpreter.SceneInterpreter Class Reference

#include <class_scene_interpreter_1_1_scene_interpreter.h>

Inheritance diagram for SceneInterpreter.SceneInterpreter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  activate ()
  Abstract - to be implemented by the subclasses.
  deactivate ()
  Abstract - to be implemented by the subclasses.
  getCopyBuffer ()
  onNodeBoundingBoxValid ()
  NodeBoundingBoxListener callback set on the model root.
  DOCUMENT_LOADED ()
  STAGE_OPENED ()
  MODEL_IMPORT_DISPLAYED_ALL ()
  If this message was sent as a result of a scene being opened, imported, or compared as a stage, we must search the scene for nodes marked deleted.
  APPLICATION_SCENE_IMPORTED ()
  APPLICATION_CLOSE_SCENE ()
  APPLICATION_LOAD_SCENE ()
  APPLICATION_NEW_SCENE ()
  APPLICATION_SHUTDOWN ()
  SCREENSHOT_SAVED ()
  MODEL_PREPAREANDIMPORT_ALLDONE ()
  NODE_CREATE ()
  NODE_REMOVE ()
  NODE_SET_MAINTAIN_HIERARCHY ()
  NODE_SET_PRIORITY ()
  NODE_SET_DEMO ()
  DELETE ()
  Delete all the given nodes.
  UNDELETE ()
  Mark all the given nodes undeleted.
  MODEL_DELETE ()
  Delete all the nodes that belong to passed models.
  MODEL_UNDELETE ()
  Undelete the nodes that have been deleted and convert back the user nodes to model nodes.
  MODEL_RENAME ()
  Rename the models passed in the data.
  MODEL_SCALE ()
  Scale the passed models.
  MODEL_SET_UP_AXIS_TRANSFORM ()
  MODEL_SWITCH_UP_AXIS ()
  Switch the up axis for the passed models.
  HIDE ()
  Hide all the given nodes.
  HIDE_UNSELECTED ()
  Hide all BUT the given nodes.
  SHOW_ALL ()
  Makes all of nodes in the graph visible.
  SHOW ()
  Makes the given nodes visible.
  SWAP_HIDDEN_AND_SHOWN ()
  Hides the visible nodes, and shows the hidden nodes.
  APPEARANCE_PARAMETER_CHANGE ()
  We will only process this for the object property and association change.
  APPEARANCE_PARAMETERS_CHANGE ()
  We will only process this for object properties right now.
  GEOMETRY_FLIP_NORMALS ()
  UNGROUP_NODES ()
  GROUP_NODES ()
  GROUP_CREATE ()
  NODE_PARENT ()
  NODE_RENAME ()
  Renames the given models using the provided name.
  GEOMETRY_UP_AXIS_SWITCH ()
  Change the orientation of the given models from Z-up to Y-up, or vice-versa.
  GEOMETRY_SCALE ()
  Scales the given models by the factor given.
  GEOMETRY_COPY_TRANSFORM ()
  GEOMETRY_PASTE_TRANSFORM ()
  GEOMETRY_SET_PROJECTION ()
  Sets the projection to be used to generate UVs (to be used by protein textures) Valid types are: planar, box, sphere, cylinder.
  GEOMETRY_RECOMPILE ()
  Forces a recompile for the specified lods.
  GEOMETRY_RESET_TRANSFORM ()
  GEOMETRY_SET_TRANSFORM ()
  Get the target nodes' ids and let the helper message do the real work.
  GEOMETRY_SET_TRANSFORM_HELPER ()
  This is an internal message that help to do the transformation of any node from any document.
  NODE_ADD_TO_MODEL ()
  NODE_REMOVE_FROM_MODEL ()
  NODE_SET_DELETE_STATUS_IN_MODEL ()
  DUPLICATE ()
  Duplicates the specified parts.
  DUPLICATE_PENDING ()
  MIRROR_DUPLICATE ()
  Mirror the specified parts.
  DUPLICATE_PENDING_EXECUTE ()
  SELECTION_CHANGED ()
  MODEL_IMPORT_LOADED ()
  GEOMETRY_SET_PRELOAD_MODE ()
  ROTATE_WORLDSPACE ()
  Get the target nodes' ids and let the helper message do the real work.
  ROTATE_WORLDSPACE_HELPER ()
  This is an internal message that help to do the woldspace rotation of any node from any document.
  SCALE_WORLDSPACE ()
  Get the target nodes' ids and let the helper message do the real work.
  SCALE_AXIS_WORLDSPACE ()
  Get the target nodes' ids and let the helper message do the real work.
  SCALE_WORLDSPACE_HELPER ()
  This is an internal message that help to do the woldspace scaling of any node from any document.
  ALIGN_TO_FLOOR ()
  TRANSLATE_WORLDSPACE ()
  Get the target nodes' ids and let the helper message do the real work.
  TRANSLATE_WORLDSPACE_HELPER ()
  This is an internal message that help to do the woldspace translation of any node from any document.
  PIVOT_MOVE_WORLDSPACE ()
  PIVOT_RESET ()
  Reset the pivot to the center.
  PIVOT_RESET_TO_ORIGINAL ()
  Reset the pivot to the center.
  PIVOT_SET_USE_NODE_PIVOT ()
  PIVOT_SET_AXIS ()
  PIVOT_ROTATE_AXIS ()
  GROUP_COLLAPSE ()
  GROUP_EXPAND ()
  STAGE_ACTIVE_LIST ()
  GROUP_SELECT_EMPTY ()
  GROUP_DELETE_EMPTY ()
  MODEL_SET_UNITS ()
  MODEL_UNITS_CHANGED ()
  Reset smart select when the units changed on the object.
  NODE_SET_PROPERTY ()
  SCENE_ENABLE_CONSOLIDATION ()

Member Function Documentation

SceneInterpreter.SceneInterpreter.__init__ ( )
SceneInterpreter.SceneInterpreter.activate ( )

Abstract - to be implemented by the subclasses.

Performs the operations necessary to place this interpreter into a ready, active state. Ensure that this base class implementation is called by the subclass implementation.

Reimplemented from MessageInterpreter.MessageInterpreter.

SceneInterpreter.SceneInterpreter.deactivate ( )

Abstract - to be implemented by the subclasses.

Performs the operations necessary to place this interpreter into a passive state. Ensure that this base class implementation is called by the subclass implementation.

Reimplemented from MessageInterpreter.MessageInterpreter.

SceneInterpreter.SceneInterpreter.getCopyBuffer ( )
SceneInterpreter.SceneInterpreter.onNodeBoundingBoxValid ( )

NodeBoundingBoxListener callback set on the model root.

When its bounding box becomes valid, this means that all of the models have been displayed.

SceneInterpreter.SceneInterpreter.DOCUMENT_LOADED ( )
SceneInterpreter.SceneInterpreter.STAGE_OPENED ( )
SceneInterpreter.SceneInterpreter.MODEL_IMPORT_DISPLAYED_ALL ( )

If this message was sent as a result of a scene being opened, imported, or compared as a stage, we must search the scene for nodes marked deleted.

Nodes are no longer marked deleted, so we we'll remove them explicitly for backwards compatibility. Note, we do it here because we must wait for the full model to be loaded for node remove to work (ie. the ModelImport-to-node connections must be established).

SceneInterpreter.SceneInterpreter.APPLICATION_SCENE_IMPORTED ( )
SceneInterpreter.SceneInterpreter.APPLICATION_CLOSE_SCENE ( )
SceneInterpreter.SceneInterpreter.APPLICATION_LOAD_SCENE ( )
SceneInterpreter.SceneInterpreter.APPLICATION_NEW_SCENE ( )
SceneInterpreter.SceneInterpreter.APPLICATION_SHUTDOWN ( )
SceneInterpreter.SceneInterpreter.SCREENSHOT_SAVED ( )
SceneInterpreter.SceneInterpreter.MODEL_PREPAREANDIMPORT_ALLDONE ( )
SceneInterpreter.SceneInterpreter.NODE_CREATE ( )
SceneInterpreter.SceneInterpreter.NODE_REMOVE ( )
SceneInterpreter.SceneInterpreter.NODE_SET_MAINTAIN_HIERARCHY ( )
SceneInterpreter.SceneInterpreter.NODE_SET_PRIORITY ( )
SceneInterpreter.SceneInterpreter.NODE_SET_DEMO ( )
SceneInterpreter.SceneInterpreter.DELETE ( )

Delete all the given nodes.

If there are no nodes specified, then delete all the selected nodes. Each node and all of its children are deleted.

SceneInterpreter.SceneInterpreter.UNDELETE ( )

Mark all the given nodes undeleted.

Each node and all of its children are marked undeleted.

SceneInterpreter.SceneInterpreter.MODEL_DELETE ( )

Delete all the nodes that belong to passed models.

NOTE: a model can be deleted if none of its nodes has a foreign child attached to it (directly under it or indirectly throught the user group).

SceneInterpreter.SceneInterpreter.MODEL_UNDELETE ( )

Undelete the nodes that have been deleted and convert back the user nodes to model nodes.

NOTE: This is an internal message used to implement undo for MODEL_DELETE, and it is not undoable itself.

SceneInterpreter.SceneInterpreter.MODEL_RENAME ( )

Rename the models passed in the data.

The label on the corresponding model import records will be modified.

SceneInterpreter.SceneInterpreter.MODEL_SCALE ( )

Scale the passed models.

SceneInterpreter.SceneInterpreter.MODEL_SET_UP_AXIS_TRANSFORM ( )
SceneInterpreter.SceneInterpreter.MODEL_SWITCH_UP_AXIS ( )

Switch the up axis for the passed models.

SceneInterpreter.SceneInterpreter.HIDE ( )

Hide all the given nodes.

If there are no nodes specified, then hide all the selected nodes. Each node and all of its descendants are hidden.

SceneInterpreter.SceneInterpreter.HIDE_UNSELECTED ( )

Hide all BUT the given nodes.

If there are no nodes specified, then hide all BUT the selected nodes. If nothing is selected or specified, do nothing. The undo for this is to show the ones that were just hidden.

SceneInterpreter.SceneInterpreter.SHOW_ALL ( )

Makes all of nodes in the graph visible.

SceneInterpreter.SceneInterpreter.SHOW ( )

Makes the given nodes visible.

Each nodes' ancestors are made visible as well.

SceneInterpreter.SceneInterpreter.SWAP_HIDDEN_AND_SHOWN ( )

Hides the visible nodes, and shows the hidden nodes.

SceneInterpreter.SceneInterpreter.APPEARANCE_PARAMETER_CHANGE ( )

We will only process this for the object property and association change.

SceneInterpreter.SceneInterpreter.APPEARANCE_PARAMETERS_CHANGE ( )

We will only process this for object properties right now.

SceneInterpreter.SceneInterpreter.GEOMETRY_FLIP_NORMALS ( )
SceneInterpreter.SceneInterpreter.UNGROUP_NODES ( )
SceneInterpreter.SceneInterpreter.GROUP_NODES ( )
SceneInterpreter.SceneInterpreter.GROUP_CREATE ( )
SceneInterpreter.SceneInterpreter.NODE_PARENT ( )
SceneInterpreter.SceneInterpreter.NODE_RENAME ( )

Renames the given models using the provided name.

SceneInterpreter.SceneInterpreter.GEOMETRY_UP_AXIS_SWITCH ( )

Change the orientation of the given models from Z-up to Y-up, or vice-versa.

targetIds - list of import node ids.

SceneInterpreter.SceneInterpreter.GEOMETRY_SCALE ( )

Scales the given models by the factor given.

Note: Scaling by 0.0 is considered bad input, and ignored.

SceneInterpreter.SceneInterpreter.GEOMETRY_COPY_TRANSFORM ( )
SceneInterpreter.SceneInterpreter.GEOMETRY_PASTE_TRANSFORM ( )
SceneInterpreter.SceneInterpreter.GEOMETRY_SET_PROJECTION ( )

Sets the projection to be used to generate UVs (to be used by protein textures) Valid types are: planar, box, sphere, cylinder.

SceneInterpreter.SceneInterpreter.GEOMETRY_RECOMPILE ( )

Forces a recompile for the specified lods.

SceneInterpreter.SceneInterpreter.GEOMETRY_RESET_TRANSFORM ( )
SceneInterpreter.SceneInterpreter.GEOMETRY_SET_TRANSFORM ( )

Get the target nodes' ids and let the helper message do the real work.

SceneInterpreter.SceneInterpreter.GEOMETRY_SET_TRANSFORM_HELPER ( )

This is an internal message that help to do the transformation of any node from any document.

SceneInterpreter.SceneInterpreter.NODE_ADD_TO_MODEL ( )
SceneInterpreter.SceneInterpreter.NODE_REMOVE_FROM_MODEL ( )
SceneInterpreter.SceneInterpreter.NODE_SET_DELETE_STATUS_IN_MODEL ( )
SceneInterpreter.SceneInterpreter.DUPLICATE ( )

Duplicates the specified parts.

If no nodes are specified, then the selection list is used. The results of the duplicate operation replace the current selection.

SceneInterpreter.SceneInterpreter.DUPLICATE_PENDING ( )
SceneInterpreter.SceneInterpreter.MIRROR_DUPLICATE ( )

Mirror the specified parts.

Use the same algorithm as for duplication, just after duplicating, set the matrices to the proper mirror values. If no nodes are specified, then the selection list is used. The results of the mirror operation replace the current selection.

SceneInterpreter.SceneInterpreter.DUPLICATE_PENDING_EXECUTE ( )
SceneInterpreter.SceneInterpreter.SELECTION_CHANGED ( )
SceneInterpreter.SceneInterpreter.MODEL_IMPORT_LOADED ( )
SceneInterpreter.SceneInterpreter.GEOMETRY_SET_PRELOAD_MODE ( )
SceneInterpreter.SceneInterpreter.ROTATE_WORLDSPACE ( )

Get the target nodes' ids and let the helper message do the real work.

SceneInterpreter.SceneInterpreter.ROTATE_WORLDSPACE_HELPER ( )

This is an internal message that help to do the woldspace rotation of any node from any document.

SceneInterpreter.SceneInterpreter.SCALE_WORLDSPACE ( )

Get the target nodes' ids and let the helper message do the real work.

SceneInterpreter.SceneInterpreter.SCALE_AXIS_WORLDSPACE ( )

Get the target nodes' ids and let the helper message do the real work.

SceneInterpreter.SceneInterpreter.SCALE_WORLDSPACE_HELPER ( )

This is an internal message that help to do the woldspace scaling of any node from any document.

SceneInterpreter.SceneInterpreter.ALIGN_TO_FLOOR ( )
SceneInterpreter.SceneInterpreter.TRANSLATE_WORLDSPACE ( )

Get the target nodes' ids and let the helper message do the real work.

SceneInterpreter.SceneInterpreter.TRANSLATE_WORLDSPACE_HELPER ( )

This is an internal message that help to do the woldspace translation of any node from any document.

SceneInterpreter.SceneInterpreter.PIVOT_MOVE_WORLDSPACE ( )
SceneInterpreter.SceneInterpreter.PIVOT_RESET ( )

Reset the pivot to the center.

SceneInterpreter.SceneInterpreter.PIVOT_RESET_TO_ORIGINAL ( )

Reset the pivot to the center.

SceneInterpreter.SceneInterpreter.PIVOT_SET_USE_NODE_PIVOT ( )
SceneInterpreter.SceneInterpreter.PIVOT_SET_AXIS ( )
SceneInterpreter.SceneInterpreter.PIVOT_ROTATE_AXIS ( )
SceneInterpreter.SceneInterpreter.GROUP_COLLAPSE ( )
SceneInterpreter.SceneInterpreter.GROUP_EXPAND ( )
SceneInterpreter.SceneInterpreter.STAGE_ACTIVE_LIST ( )
SceneInterpreter.SceneInterpreter.GROUP_SELECT_EMPTY ( )
SceneInterpreter.SceneInterpreter.GROUP_DELETE_EMPTY ( )
SceneInterpreter.SceneInterpreter.MODEL_SET_UNITS ( )
SceneInterpreter.SceneInterpreter.MODEL_UNITS_CHANGED ( )

Reset smart select when the units changed on the object.

SceneInterpreter.SceneInterpreter.NODE_SET_PROPERTY ( )
SceneInterpreter.SceneInterpreter.SCENE_ENABLE_CONSOLIDATION ( )

SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter
SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter SceneInterpreter.SceneInterpreter