Library | Module

Class pfcSelection



Description

This class represents a selection.
Direct Parent Classes:
pfcObject



Property Summary

/* readonly */ numberDepth
The depth of the selection
pfcUVParamsParams
The UV parameters
/* optional */ pfcComponentPathPath
The component path
pfcPoint3DPoint
The point
/* readonly */ stringSelectionString
Web.Link style selection string representation for this selection.
/* optional */ pfcModelItemSelItem
The selected model item
/* readonly */  /* optional */ pfcModelSelModel
The selected model
/* optional */ pfcTableCellSelTableCell
The table cell, or null, if the selection does not represent a drawing table cell selection.
/* readonly */  /* optional */ numberSelTableSegment
The drawing table segment, or null, if the selection does not contain a drawing table.
/* optional */ pfcView2DSelView2D
The drawing view, or null, if the selection does not contain a drawing view.
/* optional */ numberTParam
The T parameter of an edge or curve



Method Summary

voidDisplay ()
Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
voidHighlight (pfcStdColor Color)
Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
voidSetIntf3DCsys ( /* optional */ pfcSelection ReferenceCsys)
Set reference CSYS for export file. User should conver pfcModel to pfcSelection and then call this method on it. Use method pfcCreateModelSelection() to get pfcSelection from pfcModel
voidUnHighlight ()
Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.



Property Detail


/* readonly */ numberDepth

The depth of the selection

Exceptions thrown (but not limited to):

pfcXToolkitInvalidPtr - The selection argument is an invalid pointer.






pfcUVParamsParams

The UV parameters




/* optional */ pfcComponentPathPath

The component path




pfcPoint3DPoint

The point

Exceptions thrown (but not limited to):

pfcXToolkitInvalidPtr - The selection argument is an invalid pointer.






/* readonly */ stringSelectionString

Web.Link style selection string representation for this selection.




/* optional */ pfcModelItemSelItem

The selected model item

Exceptions thrown (but not limited to):

pfcXToolkitNotExist - The model item doesn't exist.






/* readonly */  /* optional */ pfcModelSelModel

The selected model

Exceptions thrown (but not limited to):

pfcXToolkitNotExist - The model item doesn't exist.

pfcXToolkitNotFound - no associated drawing found






/* optional */ pfcTableCellSelTableCell

The table cell, or null, if the selection does not represent a drawing table cell selection.




/* readonly */  /* optional */ numberSelTableSegment

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




/* optional */ pfcView2DSelView2D

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

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - no associated drawing found






/* optional */ numberTParam

The T parameter of an edge or curve





Method Detail


voidDisplay ()

Displays the selection. Note that this is a one-time action (the next repaint will erase this display).



voidHighlight (pfcStdColor Color)

Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
Parameters:
Color
The highlight color



voidSetIntf3DCsys ( /* optional */ pfcSelection ReferenceCsys)

Set reference CSYS for export file. User should conver pfcModel to pfcSelection and then call this method on it. Use method pfcCreateModelSelection() to get pfcSelection from pfcModel
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.



voidUnHighlight ()

Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.