// 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 _V3d_Plane_HeaderFile #define _V3d_Plane_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_V3d_Plane_HeaderFile #include #endif #ifndef _Handle_Visual3d_ClipPlane_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Structure_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _V3d_View_HeaderFile #include #endif #ifndef _Handle_V3d_Plane_HeaderFile #include #endif #ifndef _Quantity_Parameter_HeaderFile #include #endif #ifndef _Handle_V3d_View_HeaderFile #include #endif #ifndef _Quantity_Color_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Visual3d_ClipPlane; class Graphic3d_Structure; class Viewer_BadValue; class V3d_View; //! Defines the services of Plane type objects. Only
//! the creation and editing of the functions is dealt
//! with here.
//! Warning: The representation of the clipping plane must be
//! calculated by the application by means of Graphic3d.
//! Editing of this representation must be coherent with
//! respect to the position of the plane.
class V3d_Plane : public MMgt_TShared { public: //! Creates a clipping plane using the equation :
//! *X + *Y + *Z + = 0.0
//! Warning! raises BadValue from Viewer
//! if the norm of the plane is NULL.
Standard_EXPORT V3d_Plane(const Quantity_Parameter A = 0.0,const Quantity_Parameter B = 0.0,const Quantity_Parameter C = 1.0,const Quantity_Parameter D = 0.0); //! Modifies the plane equation.
//! Warning! raises BadValue from Viewer
//! if the norm of the plane is NULL.
//! If the norm of the plane is NULL.
Standard_EXPORT void SetPlane(const Quantity_Parameter A,const Quantity_Parameter B,const Quantity_Parameter C,const Quantity_Parameter D) ; //! Display the plane representation
//! in the choosen view.
Standard_EXPORT virtual void Display(const Handle(V3d_View)& aView,const Quantity_Color& aColor = Quantity_NOC_GRAY) ; //! Erase the plane representation.
Standard_EXPORT void Erase() ; //! Returns the parameters of the plane .
Standard_EXPORT void Plane(Quantity_Parameter& A,Quantity_Parameter& B,Quantity_Parameter& C,Quantity_Parameter& D) const; //! Returns TRUE when the plane representation is displayed
Standard_EXPORT Standard_Boolean IsDisplayed() const; friend //! Activate all the clipping planes defined in
//! this view.
//! If No More Plane can be activated in MyView .
Standard_EXPORT void V3d_View::SetPlaneOn() ; friend //! Activates the clipping plane in this view.
//! If No More Plane can be activated in MyView .
Standard_EXPORT void V3d_View::SetPlaneOn(const Handle(V3d_Plane)& MyPlane) ; friend //! Deactivate all clipping planes defined
//! in this view.
Standard_EXPORT void V3d_View::SetPlaneOff() ; friend //! Desactivates the clipping plane defined
//! in this view.
Standard_EXPORT void V3d_View::SetPlaneOff(const Handle(V3d_Plane)& MyPlane) ; DEFINE_STANDARD_RTTI(V3d_Plane) protected: Handle_Graphic3d_Structure MyGraphicStructure; private: //! Returns the associated plane from Visual3d.
Standard_EXPORT Handle_Visual3d_ClipPlane Plane() const; //! Updates the the plane representation.
Standard_EXPORT void Update() ; Handle_Visual3d_ClipPlane MyPlane; }; // other Inline functions and methods (like "C++: function call" methods) #endif