// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Visual3d_PickPath_HeaderFile #define _Visual3d_PickPath_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Structure_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Graphic3d_Structure; class Visual3d_PickError; //! PickPath is a vector ( pick_id, struct_id, elem_num ).
//! It's one of the constituents of a PickDescriptor.
//! There are many PickPaths in a PickDescriptor.
//! Each PickPath describes a structure or a sub-structure.
//! The pick_id is set by SetPickId method from Group.
class Visual3d_PickPath { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Creates an undefined PickPath.
Standard_EXPORT Visual3d_PickPath(); //! Creates a PickPath :
//! : Element number of the structure picked.
//! : Pick identifier of the structure picked.
//! : The picked structure.
Standard_EXPORT Visual3d_PickPath(const Standard_Integer AElemNumber,const Standard_Integer APickId,const Handle(Graphic3d_Structure)& AStructure); //! Modifies the PickPath .
//! : Element number of the structure picked.
Standard_EXPORT void SetElementNumber(const Standard_Integer AElemNumber) ; //! Modifies the PickPath .
//! : Pick identifier of the structure picked.
Standard_EXPORT void SetPickIdentifier(const Standard_Integer APickId) ; //! Modifies the PickPath .
//! : Identifier of the structure picked.
Standard_EXPORT void SetStructIdentifier(const Handle(Graphic3d_Structure)& AStructure) ; //! Returns the element number stocked in the PickPath .
//! Category: Inquire methods
//! Warning: Raises PickError if PickPath is empty (no picked structure).
Standard_EXPORT Standard_Integer ElementNumber() const; //! Returns the pick identifier stocked in the PickPath .
//! Category: Inquire methods
//! Warning: Raises PickError if PickPath is empty (no picked structure).
Standard_EXPORT Standard_Integer PickIdentifier() const; //! Returns the structure stocked in the PickPath .
//! Category: Inquire methods
//! Warning: Raises PickError if PickPath is empty (no picked structure).
Standard_EXPORT Handle_Graphic3d_Structure StructIdentifier() const; protected: private: Standard_Integer MyElementNumber; Standard_Integer MyPickId; Handle_Graphic3d_Structure MyStructure; Standard_Boolean MyElementNumberIsDef; Standard_Boolean MyPickIdIsDef; Standard_Boolean MyStructureIsDef; }; // other Inline functions and methods (like "C++: function call" methods) #endif