Public Member Functions | |
CatVis () | |
CAT_RESULT | init () |
CAT_RESULT | setSelectedPartTransform (double transform[12]) |
CAT_RESULT | setCursorTransform (double transform[12]) |
CAT_RESULT | setSelectionStateCallback (CatVisSelectStateChangeCallback callback) |
CAT_RESULT | pollVisController () |
CAT_RESULT | attemptPartSelection () |
CAT_RESULT | deselectAllParts () |
CAT_RESULT | getSelectedPartOid (std::string &oid, bool &isPartSelected) |
Catch::CatVis::CatVis | ( | ) |
Public constructor
CAT_RESULT Catch::CatVis::attemptPartSelection | ( | ) |
Attempts to select a part in Teamcenter Visualization by sending a button press and release message.
CAT_RESULT Catch::CatVis::deselectAllParts | ( | ) |
Deselects all parts in Teamcenter Visualization
CAT_RESULT Catch::CatVis::getSelectedPartOid | ( | std::string & | oid, |
bool & | isPartSelected | ||
) |
Sets 'isPartSelected' to true if a current part is selected. If this is true, this also provides the object ID of the selected part.
oid | Set to be the object ID of the currently selected part, if one is selected |
isPartSelected | Set to true if a part is selected; false otherwise. |
CAT_RESULT Catch::CatVis::init | ( | ) |
Start up a VisController Server and connects to the client (Teamcenter Visualization)
CAT_RESULT Catch::CatVis::pollVisController | ( | ) |
Instructs Viscontroller to poll for new data. This should be run whenever fresh data is required from Viscontroller that isn't provided via callback.
CAT_RESULT Catch::CatVis::setCursorTransform | ( | double | transform[12] | ) |
Update cursor transformation in Teamcenter Visualization
transform | the transform matrix the cursor will be updated to. |
CAT_RESULT Catch::CatVis::setSelectedPartTransform | ( | double | transform[12] | ) |
Set transformation information for the currently a certain object to Viscontroller The first three values represent position. The second three represent orientation.
transform | the transform matrix the object will be updated to. |
CAT_RESULT Catch::CatVis::setSelectionStateCallback | ( | CatVisSelectStateChangeCallback | callback | ) |
Sets the callback to be triggered when the part selection state has changed.
callback | the function to be run when the selection state has changed. |