// 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_PickDescriptor_HeaderFile #define _Visual3d_PickDescriptor_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_Visual3d_HSequenceOfPickPath_HeaderFile #include #endif #ifndef _Visual3d_ContextPick_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Structure_HeaderFile #include #endif class Visual3d_HSequenceOfPickPath; class Visual3d_PickError; class Visual3d_ContextPick; class Visual3d_PickPath; class Graphic3d_Structure; //! This class contains the pick information.
//! It contains a certain number of PickPaths.
class Visual3d_PickDescriptor { 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 a PickDescriptor .
Standard_EXPORT Visual3d_PickDescriptor(const Visual3d_ContextPick& CTX); //! Adds a PickPath to PickDescriptor .
Standard_EXPORT void AddPickPath(const Visual3d_PickPath& APickPath) ; //! Erases all the information in .
Standard_EXPORT void Clear() ; //! Returns the pick depth, that is the
//! number of PickPaths available in the PickDescriptor.
Standard_EXPORT Standard_Integer Depth() const; //! Returns the group of PickPaths of .
Standard_EXPORT Handle_Visual3d_HSequenceOfPickPath PickPath() const; //! Returns the root structure.
//! If the pick order was of the type TOO_TOPFIRST
//! then it's the first structure.
//! If the pick order was of the type TOO_BOTTOMFIRST
//! Then it's the last structure.
//! The pick order is set by the method SetOrder
//! from ContextPick.
//! Category: Inquire methods
//! Warning: Raises PickError if Depth == 0 (no picked structure).
Standard_EXPORT Handle_Graphic3d_Structure TopStructure() const; //! Returns the root structure pickid.
//! If the pick order was of the type TOO_TOPFIRST
//! then it's the first pickid.
//! If the pick order was of the type TOO_BOTTOMFIRST
//! then it's the last pickid.
//! The pick order is set by the method SetOrder
//! from ContextPick.
//! Category: Inquire methods
//! Warning: Raises PickError if Depth == 0 (no picked structure).
Standard_EXPORT Standard_Integer TopPickId() const; //! Returns the root structure element number.
//! If the pick order was of the type TOO_TOPFIRST
//! then it's the first element number.
//! If the pick order was of the type TOO_BOTTOMFIRST
//! then it's the last element number.
//! The pick order is set by the method SetOrder
//! from ContextPick.
//! Category: Inquire methods
//! Warning: Raises PickError if Depth == 0 (no picked structure).
Standard_EXPORT Standard_Integer TopElementNumber() const; protected: private: Handle_Visual3d_HSequenceOfPickPath MyPickPathSequence; Visual3d_ContextPick MyContext; }; // other Inline functions and methods (like "C++: function call" methods) #endif