NX Open C++ Reference Guide
|
Represents a list of objects on a selection list. More...
Public Member Functions | |
bool | Add (NXOpen::DisplayableObject *object) |
Adds an object to the list. More... | |
bool | Add (const std::vector< NXOpen::DisplayableObject * > &objects) |
Adds a set of objects to the list. More... | |
bool | Add (NXOpen::SelectionMethod *inputSelectionMethod) |
Adds the objects from a SelectionMethod to the list. More... | |
bool | Add (NXOpen::DisplayableObject *selection, NXOpen::View *view, const NXOpen::Point3d &point) |
Adds the object with the objects view and objects point. More... | |
bool | Add (NXOpen::InferSnapType::SnapType snapType, NXOpen::DisplayableObject *selection1, NXOpen::View *view1, const NXOpen::Point3d &point1, NXOpen::DisplayableObject *selection2, NXOpen::View *view2, const NXOpen::Point3d &point2) |
The object being selected with the objects view and objects point and snap information. More... | |
bool | Add (NXOpen::DisplayableObject *selection, NXOpen::CaeObjectType::CaeSubType caeSubType, int caeSubId) |
The object being selected with CAE set object information. More... | |
void | Clear () |
Removes all items from the list. More... | |
bool | Contains (NXOpen::DisplayableObject *object) |
Returns whether the specified object is already in the list or not. More... | |
bool | DuplicatesAllowed () |
Returns whether duplicate objects are allowed in the selection list. More... | |
std::vector < NXOpen::DisplayableObject * > | GetArray () |
Returns the list of objects in the selection list. More... | |
std::vector < NXOpen::SelectObject * > | GetSelectObjectArray () |
Returns the list of SelectObjects in the selection list. More... | |
bool | Remove (NXOpen::DisplayableObject *object) |
Remove specified object from list. More... | |
bool | Remove (NXOpen::DisplayableObject *object, NXOpen::View *view) |
Remove specified object from list. More... | |
bool | Remove (NXOpen::InferSnapType::SnapType snapType, NXOpen::DisplayableObject *selection1, NXOpen::View *view1, const NXOpen::Point3d &point1, NXOpen::DisplayableObject *selection2, NXOpen::View *view2, const NXOpen::Point3d &point2) |
Remove specified object from list. More... | |
bool | Remove (NXOpen::SelectionMethod *inputSelectionMethod) |
Removes the objects from a SelectionMethod from the list. More... | |
bool | RemoveArray (const std::vector< NXOpen::DisplayableObject * > &objects) |
Remove specified objects from list. More... | |
void | SetArray (const std::vector< NXOpen::DisplayableObject * > &objects) |
Sets the list of objects in the selection list. More... | |
int | Size () |
Returns the number of objects in the list. More... | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
![]() | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a list of objects on a selection list.
Created in NX5.0.0.
bool NXOpen::SelectDisplayableObjectList::Add | ( | NXOpen::DisplayableObject * | object | ) |
Adds an object to the list.
object | object to add |
bool NXOpen::SelectDisplayableObjectList::Add | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Adds a set of objects to the list.
objects | objects to add |
bool NXOpen::SelectDisplayableObjectList::Add | ( | NXOpen::SelectionMethod * | inputSelectionMethod | ) |
Adds the objects from a SelectionMethod to the list.
inputSelectionMethod | selection method containing objects to add |
bool NXOpen::SelectDisplayableObjectList::Add | ( | NXOpen::DisplayableObject * | selection, |
NXOpen::View * | view, | ||
const NXOpen::Point3d & | point | ||
) |
Adds the object with the objects view and objects point.
selection | selected object |
view | selected object view |
point | selected object point |
bool NXOpen::SelectDisplayableObjectList::Add | ( | NXOpen::InferSnapType::SnapType | snapType, |
NXOpen::DisplayableObject * | selection1, | ||
NXOpen::View * | view1, | ||
const NXOpen::Point3d & | point1, | ||
NXOpen::DisplayableObject * | selection2, | ||
NXOpen::View * | view2, | ||
const NXOpen::Point3d & | point2 | ||
) |
The object being selected with the objects view and objects point and snap information.
snapType | snap point type |
selection1 | first selected object |
view1 | first selected object view |
point1 | first selected object point |
selection2 | second selected object |
view2 | second selected object view |
point2 | second selected object point |
bool NXOpen::SelectDisplayableObjectList::Add | ( | NXOpen::DisplayableObject * | selection, |
NXOpen::CaeObjectType::CaeSubType | caeSubType, | ||
int | caeSubId | ||
) |
The object being selected with CAE set object information.
Created in NX5.0.0.
License requirements : None
selection | selected object |
caeSubType | CAE set object sub type |
caeSubId | CAE set object sub id |
void NXOpen::SelectDisplayableObjectList::Clear | ( | ) |
Removes all items from the list.
Created in NX5.0.0.
License requirements : None
bool NXOpen::SelectDisplayableObjectList::Contains | ( | NXOpen::DisplayableObject * | object | ) |
Returns whether the specified object is already in the list or not.
object | object to check |
bool NXOpen::SelectDisplayableObjectList::DuplicatesAllowed | ( | ) |
Returns whether duplicate objects are allowed in the selection list.
Created in NX5.0.0.
License requirements : None
std::vector<NXOpen::DisplayableObject *> NXOpen::SelectDisplayableObjectList::GetArray | ( | ) |
Returns the list of objects in the selection list.
std::vector<NXOpen::SelectObject *> NXOpen::SelectDisplayableObjectList::GetSelectObjectArray | ( | ) |
Returns the list of SelectObjects in the selection list.
bool NXOpen::SelectDisplayableObjectList::Remove | ( | NXOpen::DisplayableObject * | object | ) |
Remove specified object from list.
object | Object to remove |
bool NXOpen::SelectDisplayableObjectList::Remove | ( | NXOpen::DisplayableObject * | object, |
NXOpen::View * | view | ||
) |
Remove specified object from list.
object | Object to remove |
view | with this view |
bool NXOpen::SelectDisplayableObjectList::Remove | ( | NXOpen::InferSnapType::SnapType | snapType, |
NXOpen::DisplayableObject * | selection1, | ||
NXOpen::View * | view1, | ||
const NXOpen::Point3d & | point1, | ||
NXOpen::DisplayableObject * | selection2, | ||
NXOpen::View * | view2, | ||
const NXOpen::Point3d & | point2 | ||
) |
Remove specified object from list.
snapType | snap point type |
selection1 | first selected object |
view1 | first selected object view |
point1 | first selected object point |
selection2 | second selected object |
view2 | second selected object view |
point2 | second selected object point |
bool NXOpen::SelectDisplayableObjectList::Remove | ( | NXOpen::SelectionMethod * | inputSelectionMethod | ) |
Removes the objects from a SelectionMethod from the list.
inputSelectionMethod | selection method containing objects to add |
bool NXOpen::SelectDisplayableObjectList::RemoveArray | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Remove specified objects from list.
objects | Objects to remove |
void NXOpen::SelectDisplayableObjectList::SetArray | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Sets the list of objects in the selection list.
This will clear any existing items in the list.
Created in NX5.0.0.
License requirements : None
objects | items to put in the list |
int NXOpen::SelectDisplayableObjectList::Size | ( | ) |
Returns the number of objects in the list.
Created in NX5.0.0.
License requirements : None
|
virtual |
Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.
Implements NXOpen::GeometricUtilities::IComponentBuilder.