Assembly: VMAppCore.dll This class is to represent the picker base.
Inheritance
object ← PickerBaseDerived
PickerDirection, PickerEntityVM, PickerGear, PickerGeneral, PickerHole, PickerMesh, PickerMulti, PickerOrientation, PickerPoint, PickerSolid, PickerTopol, PickerTransformExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
PickerBase()
Initializes a new instance of the PickerBase classProperties
ActiveDocument
Property Value
DocumentIsOnlyResultXml
Gets indicating whether only the xml of picking result.Property Value
boolIsReference
Gets or sets the picking result indicating whether it is reference.Property Value
boolResult
Gets or sets the object of picking result.Property Value
objectResultXml
Gets or sets the xml of picking result. ------- caution 1 ------- The case of Point and Direction create the Point and Direction object through deserialize of result xml. But, The case of EntityVM sets the existed object. ------- caution 2 ------- The case of EntityVM execute filering in this function. If the filtering result is false or the picking result invalidate , throw the exception. ------- caution 3 ------- Defined rule can changed through added picker.Property Value
stringSymmetricType
Gets or sets the symmetric type.Property Value
EnumMethods
Abort()
Picker is forced stop the flag is set.Filtering(UIntPtr)
Filtering to not proper object.Parameters
pTarget UIntPtr
Filtering target.
Returns
booltrue if success; otherwise, false.
FilteringAnother(UIntPtr)
Filtering to not proper object about special target.Parameters
pTarget UIntPtr
Filtering target.
Returns
booltrue if success; otherwise, false.
FilteringReference(UIntPtr, UIntPtr)
Filtering to not proper object about special target into owner.Parameters
pOwner UIntPtr
Filtering owner of target.
pTarget UIntPtr
Filtering target.
Returns
booltrue if success; otherwise, false.
FilteringVMPID(_VM_ID)
Filtering to not proper object.Parameters
nVMPID _VM_ID
Filtering target PID.
Returns
booltrue if success; otherwise, false.
GetAdjacentPatch(double, List<int>)
Parameters
dAngle double
lstNode List<int>
GetChangeNoneParametricXml(string)
Change to the result of parametric to the result of none parametric.Parameters
strXml string
Result of parametric.
Returns
string The result xml of none parametric.GetPickerInfo()
Gets information of picking type.Returns
stringGetResultXmlFromKey(UIntPtr)
Get valid result xml according to picker key of core.Parameters
key UIntPtr
Picking destination key.
Returns
string The valid result xml.GetValidResultXml(string)
Get valid result xml according to picker type of core.Parameters
strDesireXml string
Invalid result xml.
Returns
string The valid result xml.Highlight(bool)
Picking highlight to filtered target.Parameters
bHighlight bool
If set to ture is highlight; otherwise, false isn’t highlight.
Pick(bool)
This method execute picking. Define the information of picking thread. If picking thread is forced stop, picking is a failure.Parameters
bGetXmlOnly bool
If set to true set result xml; otherwise, If set to false set result object.
Returns
booltrue if success; otherwise, false.
PickWithStartSignal(bool, ManualResetEvent)
This method execute picking with start signal of sub-picking. Define the information of picking thread. If picking thread is forced stop, picking is a failure.Parameters
bGetXmlOnly bool
If set to true set result xml; otherwise, If set to false set result object.
eventPickStart ManualResetEvent
picking start signal.
Returns
booltrue if success; otherwise, false.
SetResultImpl(ref string, bool)
Sets the result for picking.Parameters
strXml string
The picked data.
bXmlOnly bool
If it is true, skip the result setting.
Returns
booltrue if success; otherwise, false.
UpdateDisplay()
Update display.UseEntityFiltering()
Returns
boolraise_CustomFilterEvent(object, FilterArgs)
Parameters
value0 object
value1 FilterArgs