API Documentation > Interfaces > Interface ViewOwner
Interface ViewOwner

package com.ptc.pfc.pfcView;

public interface
ViewOwner
extends
com.ptc.pfc.pfcObject.Parent


Description
This is a base class for an object that has views associated with it (such as model).
Direct Known Subclasses:
User Guide References:
Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent :
Method Summary
void
CurrentViewRotate (CoordAxis Axis, double Angle)
Rotate the object in current view with respect to X, Y or Z axes.
Returns a view object representing the current orientation of the model.
Retrieves the transformation for a model in the current view. The transformation is from the object's coordinate system to logical screen coordinates.
/*cipOptional*/ View
GetView (String Name)
Returns the specified view, given its name.
/*cipOptional*/ Views
Retrieves the views associated with the object
/*cipOptional*/ View
RetrieveView (String Name)
Sets the current view to the orientation previously saved with a specified name.
SaveView (String Name)
This method saves the view with a specified name.
void
Sets the transformation of a model in the current view. This is the transformation between model coordinates and screen coordinates.
Method Detail
RetrieveView
/*cipOptional*/ View
RetrieveView
(String Name)
Sets the current view to the orientation previously saved with a specified name.
Exceptions thrown (but not limited to):
XToolkitNotFound - The function was unable to retrieve a view with the specified name.
User Guide References:
Parameters:
Name
The name of the view to retrieve
Returns:
The retrieved view or null, if a view with the specified name has not been found.
GetView
/*cipOptional*/ View
GetView
(String Name)
Returns the specified view, given its name.
Exceptions thrown (but not limited to):
XToolkitNotFound - A view was not found for the specified name.
XToolkitInvalidItem - The specified view is not retrievable; e.g. the model is sheet metal at a certain stage of bending or unbending.
See Also:
User Guide References:
Parameters:
Name
The name of the view to get
Returns:
The named view, or null, if a view with the specified name has not been found
SaveView
SaveView
(String Name)
This method saves the view with a specified name.
Exceptions thrown (but not limited to):
XToolkitNotFound - No view names were found for the specified model.
User Guide References:
Parameters:
Name
The name used to store the view.
Returns:
The saved view.
GetCurrentViewTransform
GetCurrentViewTransform
()
Retrieves the transformation for a model in the current view. The transformation is from the object's coordinate system to logical screen coordinates.
Exceptions thrown (but not limited to):
XToolkitInvalidMatrix - The transformation is invalid.
User Guide References:
Returns:
The transformation object.
SetCurrentViewTransform
void
SetCurrentViewTransform
(Transform3D TrForm)
Sets the transformation of a model in the current view. This is the transformation between model coordinates and screen coordinates.
Exceptions thrown (but not limited to):
XToolkitInvalidMatrix - The transformation is invalid.
User Guide References:
Parameters:
TrForm
The transformation object.
Returns:
CurrentViewRotate
void
CurrentViewRotate
(CoordAxis Axis, double Angle)
Rotate the object in current view with respect to X, Y or Z axes.
User Guide References:
Parameters:
Axis
The rotation axis
Angle
The rotation angle, in degrees
Returns:
ListViews
/*cipOptional*/ Views
ListViews
()
Retrieves the views associated with the object
User Guide References:
Returns:
The list of views, or null, if there are no views associated with thisobject.
GetCurrentView
GetCurrentView
()
Returns a view object representing the current orientation of the model.
This method is deprecated.
User Guide References:
Returns:
The current View object.
Was this helpful?