| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| DisplayList2D | CreateDisplayList2D
(int Id, ScreenTransform Transform, DisplayListener Action)
Creates a two-dimensional display list |
| DisplayList3D | CreateDisplayList3D
(int Id, DisplayListener Action)
Creates a three-dimensional display list entity |
| void | DrawArc2D
(Point3D Center, double Radius, Vector3D StartDirection, Vector3D EndDirection)
Draws an arc on the screen |
| void | DrawCircle
(Point3D Center, double Radius)
Draws a circle on the screen |
| void | DrawLine
(Point3D Endpoint)
Draws a line on the screen from the last pen position specified to the position specified by the Endpoint argument. The last pen position is specified using this same function previously times or by Display.SetPenPosition(Point3D) |
| void | DrawPolygon2D
(Point2Ds Vertices,
/*optional*/
StdColor FillColor)
Draws two-dimensional polygon on the screen. |
| void | DrawPolyline
(Point3Ds Points)
Draws a series of connected line segments on the screen. |
| void | DrawText2D
(Point3D StartPoint, String TextLine)
Draws text on the screen |
| Font | GetCurrentFont
()
Get method for attribute "CurrentFont" The current font used for text graphics in Creo Parametric. |
| StdColor | GetCurrentGraphicsColor
()
Get method for attribute "CurrentGraphicsColor" The standard color used to display new graphics. |
| GraphicsMode | GetCurrentGraphicsMode
()
Get method for attribute "CurrentGraphicsMode" The mode used to display graphics (i.e. normal or complement). |
| Font | GetDefaultFont
()
Get method for attribute "DefaultFont" The default font for this session of Creo Parametric. |
| /*optional*/ Font | GetFontById
(int Id)
Creates a font object given a Creo Parametric font integer id. |
| /*optional*/ Font | GetFontByName
(String Name)
Returns a font object given a Creo Parametric font name. |
| double | GetRotationAngle
()
Get method for attribute "RotationAngle" The rotation angle of created text graphics (default is 0). |
| double | GetSlantAngle
()
Get method for attribute "SlantAngle" The slant angle of created text graphics (default is 0). |
| double | GetTextHeight
()
Get method for attribute "TextHeight" The text height of created text graphics. |
| double | GetWidthFactor
()
Get method for attribute "WidthFactor" The width-to-height ratio for created text graphics. |
| void | Invalidate
(Model Model)
Invalidates the display list of the model singalling that a repaint is needed. |
| void | ResetTextAttributes
()
Resets the Creo Parametric text attributes to use the default settings |
| void | SetCurrentFont
(Font value)
Set method for attribute "CurrentFont" The current font used for text graphics in Creo Parametric. |
| void | SetCurrentGraphicsColor
(StdColor value)
Set method for attribute "CurrentGraphicsColor" The standard color used to display new graphics. |
| void | SetCurrentGraphicsMode
(GraphicsMode value)
Set method for attribute "CurrentGraphicsMode" The mode used to display graphics (i.e. normal or complement). |
| void | SetPenPosition
(Point3D NewPosition)
This method enables you to move to a point without producing any graphical output. This method is used when drawing lines using Display.DrawLine(Point3D) |
| void | SetRotationAngle
(double value)
Set method for attribute "RotationAngle" The rotation angle of created text graphics (default is 0). |
| void | SetSlantAngle
(double value)
Set method for attribute "SlantAngle" The slant angle of created text graphics (default is 0). |
| void | SetTextHeight
(double value)
Set method for attribute "TextHeight" The text height of created text graphics. |
| void | SetWidthFactor
(double value)
Set method for attribute "WidthFactor" The width-to-height ratio for created text graphics. |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Method Detail |
|---|
| CreateDisplayList2D |
|---|
| DisplayList2D | CreateDisplayList2D | (int Id, ScreenTransform Transform, DisplayListener Action) |
| Creates a two-dimensional display list
Two dimensional display list operations in Creo Parametric are not currently supported. This method is reserved for future activation.
|
| Invalidate |
|---|
| void | Invalidate | (Model Model) |
| Invalidates the display list of the model singalling that a repaint is needed.
Exceptions thrown (but not limited to): XToolkitInvalidType - The specified model is not a part, assembly, or drawing. XToolkitNotExist - The function cannot find the window associated with the object.
|
| DrawArc2D |
|---|
| void | DrawArc2D | (Point3D Center, double Radius, Vector3D StartDirection, Vector3D EndDirection) |
| Draws an arc on the screen
All points are in logical screen cordinates
|
| DrawPolygon2D |
|---|
| void | DrawPolygon2D | (Point2Ds Vertices, /*optional*/ StdColor FillColor) |
| Draws two-dimensional polygon on the screen.
Exceptions thrown (but not limited to): XToolkitLineTooLong - You specified more than 100 points.
|
| DrawText2D |
|---|
| void | DrawText2D | (Point3D StartPoint, String TextLine) |
| Draws text on the screen
If no text attributes are set before this method call the program uses the default text attributes for Creo Parametric. Set the text attributes using the attributes on the Display object. Exceptions thrown (but not limited to): XToolkitNotFound - The font specified in a previous call to ProtText*CurrentSet() was not found.
|
| CreateDisplayList3D |
|---|
| DisplayList3D | CreateDisplayList3D | (int Id, DisplayListener Action) |
Creates a three-dimensional display list entity
|
| DrawCircle |
|---|
| void | DrawCircle | (Point3D Center, double Radius) |
| Draws a circle on the screen
Center point and orientation is in the coordinate system of the current object. For example, if the current object is a part, the point must be in the part's coordinate system. If the current object is an assembly, the point must be in the assembly's coordinate system. If the current object is a two dimensional model, circle will be normal to the screen.
|
| DrawLine |
|---|
| void | DrawLine | (Point3D Endpoint) |
| Draws a line on the screen from the last pen position specified to the position specified
by the Endpoint argument.
The last pen position is specified using this same function previously times or by
Display.SetPenPosition(Point3D)
These points are in the coordinate system of the current object. For example, if the current object is a part, the points must be in the part's coordinate system. If the current object is an assembly, the points must be in the assembly's coordinate system.
|
| SetPenPosition |
|---|
| void | SetPenPosition | (Point3D NewPosition) |
| This method enables you to move to a point without producing any graphical output. This
method is used when drawing lines using Display.DrawLine(Point3D)
This point is in the coordinate system of the current object. For example, if the current object is a part, the point must be in the part's coordinate system. If the current object is an assembly, the point must be in the assembly's coordinate system.
|
| DrawPolyline |
|---|
| void | DrawPolyline | (Point3Ds Points) |
| Draws a series of connected line segments on the screen.
These points are in the coordinate system of the current object. For example, if the current object is a part, the points must be in the part's coordinate system. If the current object is an assembly, the points must be in the assembly's coordinate system. The total number of points should be less than 200.
|
| GetDefaultFont |
|---|
| Font | GetDefaultFont | () |
| The default font for this session of Creo Parametric. Exceptions thrown (but not limited to): XToolkitNotFound - The function could not find a font name for the specified font identifier.
|
| GetCurrentFont/SetCurrentFont |
|---|
| Font | GetCurrentFont | () |
| void | SetCurrentFont | (Font value) |
| The current font used for text graphics in Creo Parametric. Exceptions thrown (but not limited to): XToolkitNotFound - This means either:
|
| GetFontById |
|---|
| /*optional*/ Font | GetFontById | (int Id) |
| Creates a font object given a Creo Parametric font integer id.
The correspondance between font names and integer identifiers stays constant for a given Creo Parametric session, but may be different for different sessions. Exceptions thrown (but not limited to): XToolkitNotFound - The function could not find a font name for the specified font identifier.
|
| GetFontByName |
|---|
| /*optional*/ Font | GetFontByName | (String Name) |
| Returns a font object given a Creo Parametric font name.
The correspondance between font names and integer identifiers stays constant for a given Creo Parametric session, but may be different for different sessions. Exceptions thrown (but not limited to): XToolkitNotFound - The function could not find a font identifier for the specified font name.
|
| GetTextHeight/SetTextHeight |
|---|
| double | GetTextHeight | () |
| void | SetTextHeight | (double value) |
| The text height of created text graphics. Exceptions thrown (but not limited to): XToolkitNotFound - The attributes were not set.
|
| GetRotationAngle/SetRotationAngle |
|---|
| double | GetRotationAngle | () |
| void | SetRotationAngle | (double value) |
| The rotation angle of created text graphics (default is 0). Exceptions thrown (but not limited to): XToolkitNotFound - The attributes were not set.
|
| GetSlantAngle/SetSlantAngle |
|---|
| double | GetSlantAngle | () |
| void | SetSlantAngle | (double value) |
| The slant angle of created text graphics (default is 0). Exceptions thrown (but not limited to): XToolkitNotFound - The attributes were not set.
|
| GetWidthFactor/SetWidthFactor |
|---|
| double | GetWidthFactor | () |
| void | SetWidthFactor | (double value) |
| The width-to-height ratio for created text graphics. Exceptions thrown (but not limited to): XToolkitNotFound - The attributes were not set.
|
| ResetTextAttributes |
|---|
| void | ResetTextAttributes | () |
Resets the Creo Parametric text attributes to use the default settings
|
| GetCurrentGraphicsMode/SetCurrentGraphicsMode |
|---|
| GraphicsMode | GetCurrentGraphicsMode | () |
| void | SetCurrentGraphicsMode | (GraphicsMode value) |
The mode used to display graphics (i.e. normal or complement).
|
| GetCurrentGraphicsColor/SetCurrentGraphicsColor |
|---|
| StdColor | GetCurrentGraphicsColor | () |
| void | SetCurrentGraphicsColor | (StdColor value) |
| The standard color used to display new graphics. Exceptions thrown (but not limited to): XToolkitNoChange - The current color is the same as the new color.
|