Library | Package Java Toolkit

Interface Selection

package com.ptc.pfc.pfcSelect;

public interface Selection
  extends com.ptc.pfc.pfcObject.Object



Description

This class represents a selection.
Direct Known Subclasses:
WSelection



Method Summary
voidDisplay ()
    Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
doubleGetDepth ()
    Get method for attribute "Depth"
    The depth of the selection
UVParamsGetParams ()
    Get method for attribute "Params"
    The UV parameters
/*optional*/ ComponentPathGetPath ()
    Get method for attribute "Path"
    The component path
Point3DGetPoint ()
    Get method for attribute "Point"
    The point
StringGetSelectionString ()
    Get method for attribute "SelectionString"
    Web.Link style selection string representation for this selection.
/*optional*/ ModelItemGetSelItem ()
    Get method for attribute "SelItem"
    The selected model item
/*optional*/ ModelGetSelModel ()
    Get method for attribute "SelModel"
    The selected model
/*optional*/ TableCellGetSelTableCell ()
    Get method for attribute "SelTableCell"
    The table cell, or null, if the selection does not represent a drawing table cell selection.
/*optional*/ IntegerGetSelTableSegment ()
    Get method for attribute "SelTableSegment"
    The drawing table segment, or null, if the selection does not contain a drawing table.
/*optional*/ View2DGetSelView2D ()
    Get method for attribute "SelView2D"
    The drawing view, or null, if the selection does not contain a drawing view.
/*optional*/ DoubleGetTParam ()
    Get method for attribute "TParam"
    The T parameter of an edge or curve
voidHighlight (StdColor Color)
    Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
voidSetIntf3DCsys ( /*optional*/ Selection ReferenceCsys)
     Set reference CSYS for export file. User should conver Model to Selection and then call this method on it. Use method pfcCreateModelSelection() to get Selection from Model
voidSetParams (UVParams value)
    Set method for attribute "Params"
    The UV parameters
voidSetPath ( /*optional*/ ComponentPath value)
    Set method for attribute "Path"
    The component path
voidSetPoint (Point3D value)
    Set method for attribute "Point"
    The point
voidSetSelItem ( /*optional*/ ModelItem value)
    Set method for attribute "SelItem"
    The selected model item
voidSetSelTableCell ( /*optional*/ TableCell value)
    Set method for attribute "SelTableCell"
    The table cell, or null, if the selection does not represent a drawing table cell selection.
voidSetSelView2D ( /*optional*/ View2D value)
    Set method for attribute "SelView2D"
    The drawing view, or null, if the selection does not contain a drawing view.
voidSetTParam ( /*optional*/ Double value)
    Set method for attribute "TParam"
    The T parameter of an edge or curve
voidUnHighlight ()
    Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.

Method Detail

GetSelModel

/*optional*/ ModelGetSelModel ()


    The selected model

Exceptions thrown (but not limited to):

XToolkitNotExist - The model item doesn't exist.

XToolkitNotFound - no associated drawing found


Manual References:
Models: Getting a Model Object, Models: Getting a Model Object, Selection: Accessing Selection Data, Selection: Accessing Selection Data



GetSelItem/SetSelItem

/*optional*/ ModelItemGetSelItem ()
voidSetSelItem ( /*optional*/ ModelItem value)


    The selected model item

Exceptions thrown (but not limited to):

XToolkitNotExist - The model item doesn't exist.


Manual References:
ModelItem: Getting ModelItem Objects, ModelItem: Getting ModelItem Objects, Selection: Accessing Selection Data, Selection: Accessing Selection Data, Drawings: Obtaining Drawing Dimensions, Drawings: Selecting Drawing Tables and Cells, Drawings: Selecting Drawing Tables and Cells, Selection: Programmatic Selection, Selection: Programmatic Selection



GetSelTableCell/SetSelTableCell

/*optional*/ TableCellGetSelTableCell ()
voidSetSelTableCell ( /*optional*/ TableCell value)


    The table cell, or null, if the selection does not represent a drawing table cell selection.
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Drawings: Selecting Drawing Tables and Cells, Drawings: Selecting Drawing Tables and Cells, Selection: Programmatic Selection, Selection: Programmatic Selection



GetSelView2D/SetSelView2D

/*optional*/ View2DGetSelView2D ()
voidSetSelView2D ( /*optional*/ View2D value)


    The drawing view, or null, if the selection does not contain a drawing view.

Exceptions thrown (but not limited to):

XToolkitNotFound - no associated drawing found


Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Drawings: Obtaining Drawing Views, Drawings: Obtaining Drawing Views, Selection: Programmatic Selection



GetSelTableSegment

/*optional*/ IntegerGetSelTableSegment ()


    The drawing table segment, or null, if the selection does not contain a drawing table.
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Drawings: Selecting Drawing Tables and Cells, Drawings: Drawing Table Segments, Drawings: Drawing Table Segments



GetPath/SetPath

/*optional*/ ComponentPathGetPath ()
voidSetPath ( /*optional*/ ComponentPath value)


    The component path
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection



GetParams/SetParams

UVParamsGetParams ()
voidSetParams (UVParams value)


    The UV parameters
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection



GetTParam/SetTParam

/*optional*/ DoubleGetTParam ()
voidSetTParam ( /*optional*/ Double value)


    The T parameter of an edge or curve
Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Selection: Programmatic Selection, Selection: Programmatic Selection



GetPoint/SetPoint

Point3DGetPoint ()
voidSetPoint (Point3D value)


    The point

Exceptions thrown (but not limited to):

XToolkitInvalidPtr - The selection argument is an invalid pointer.


Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data, Assembly: Kinematic Dragging and Creating Snapshots: Performing Kinematic Drag, Selection: Programmatic Selection, Selection: Programmatic Selection



GetDepth

doubleGetDepth ()


    The depth of the selection

Exceptions thrown (but not limited to):

XToolkitInvalidPtr - The selection argument is an invalid pointer.


Manual References:
Selection: Accessing Selection Data, Selection: Accessing Selection Data



GetSelectionString

StringGetSelectionString ()


    Web.Link style selection string representation for this selection.



Highlight

voidHighlight (StdColor Color)


    Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
Manual References:
Selection: Controlling Selection Display, Selection: Controlling Selection Display
Parameters:
Color
The highlight color
Returns:


UnHighlight

voidUnHighlight ()


    Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.
Manual References:
Selection: Controlling Selection Display, Selection: Controlling Selection Display
Returns:


Display

voidDisplay ()


    Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
Manual References:
Selection: Controlling Selection Display
Returns:


SetIntf3DCsys

voidSetIntf3DCsys ( /*optional*/ Selection ReferenceCsys)


     Set reference CSYS for export file. User should conver Model to Selection and then call this method on it. Use method pfcCreateModelSelection() to get Selection from Model
Manual References:
Interface: Exporting Using Coordinate System
Parameters:
ReferenceCsys
The reference coordinate system selection. This is Optional argument. Call this method without any argument to set default coordinate system. Reference CSYS is not supported for CADDS and NEUTRAL file types.
Returns: