X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_PlaneTrihedron.hxx;h=be79176b8f8d192d3f45dada52337dfc6e1b9563;hp=99277fd50f000de6a6f0ef28409661449140c01e;hb=4c7a3faef5f292475c23ee615ad49d57fc039b58;hpb=92efcf78a683e75ce77d916d07831255342780a8 diff --git a/src/AIS/AIS_PlaneTrihedron.hxx b/src/AIS/AIS_PlaneTrihedron.hxx index 99277fd..be79176 100644 --- a/src/AIS/AIS_PlaneTrihedron.hxx +++ b/src/AIS/AIS_PlaneTrihedron.hxx @@ -17,31 +17,12 @@ #ifndef _AIS_PlaneTrihedron_HeaderFile #define _AIS_PlaneTrihedron_HeaderFile -#include -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -class Geom_Plane; -class AIS_InteractiveObject; +#include + class AIS_Line; class AIS_Point; -class Prs3d_Presentation; -class Prs3d_Projector; -class Geom_Transformation; -class Quantity_Color; -class TCollection_AsciiString; - - -class AIS_PlaneTrihedron; -DEFINE_STANDARD_HANDLE(AIS_PlaneTrihedron, AIS_InteractiveObject) +class Geom_Plane; //! To construct a selectable 2d axis system in a 3d //! drawing. This can be placed anywhere in the 3d @@ -58,14 +39,13 @@ DEFINE_STANDARD_HANDLE(AIS_PlaneTrihedron, AIS_InteractiveObject) //! these dimensions, you must temporarily recover the //! Drawer object. From inside it, take the Aspects in //! which the values for length are stocked, for example, -//! PlaneAspect for planes and FirstAxisAspect for +//! PlaneAspect for planes and LineAspect for //! trihedra. Change these values and recalculate the presentation. class AIS_PlaneTrihedron : public AIS_InteractiveObject { - + DEFINE_STANDARD_RTTIEXT(AIS_PlaneTrihedron, AIS_InteractiveObject) public: - //! Initializes the plane aPlane. The plane trihedron is //! constructed from this and an axis. Standard_EXPORT AIS_PlaneTrihedron(const Handle(Geom_Plane)& aPlane); @@ -93,62 +73,36 @@ public: //! Returns true if the display mode selected, aMode, is valid. Standard_EXPORT Standard_Boolean AcceptDisplayMode (const Standard_Integer aMode) const Standard_OVERRIDE; - - //! computes the presentation according to a point of view - //! given by . - //! To be Used when the associated degenerated Presentations - //! have been transformed by which is not a Pure - //! Translation. The HLR Prs can't be deducted automatically - //! WARNING : must be applied - //! to the object to display before computation !!! - Standard_EXPORT virtual void Compute (const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTrsf, const Handle(Prs3d_Presentation)& aPresentation) Standard_OVERRIDE; - - virtual Standard_Integer Signature() const Standard_OVERRIDE; - - //! Returns datum as the type of Interactive Object. - virtual AIS_KindOfInteractive Type() const Standard_OVERRIDE; - - //! Allows you to provide settings for the color aColor. - Standard_EXPORT void SetColor (const Quantity_NameOfColor aColor) Standard_OVERRIDE; - - Standard_EXPORT void SetColor (const Quantity_Color& aColor) Standard_OVERRIDE; - - void SetXLabel (const TCollection_AsciiString& aLabel); - - void SetYLabel (const TCollection_AsciiString& aLabel); + virtual Standard_Integer Signature() const Standard_OVERRIDE { return 4; } + //! Returns datum as the type of Interactive Object. + virtual AIS_KindOfInteractive Type() const Standard_OVERRIDE { return AIS_KOI_Datum; } + //! Allows you to provide settings for the color aColor. + Standard_EXPORT virtual void SetColor (const Quantity_Color& theColor) Standard_OVERRIDE; - DEFINE_STANDARD_RTTIEXT(AIS_PlaneTrihedron,AIS_InteractiveObject) + void SetXLabel (const TCollection_AsciiString& theLabel) { myXLabel = theLabel; } + + void SetYLabel (const TCollection_AsciiString& theLabel) { myYLabel = theLabel; } protected: - Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE; - - private: - - Standard_EXPORT void Compute (const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation) Standard_OVERRIDE; - Standard_EXPORT void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE; +private: + Handle(Geom_Plane) myPlane; Handle(AIS_InteractiveObject) myShapes[3]; TCollection_AsciiString myXLabel; TCollection_AsciiString myYLabel; - }; - -#include - - - - +DEFINE_STANDARD_HANDLE(AIS_PlaneTrihedron, AIS_InteractiveObject) #endif // _AIS_PlaneTrihedron_HeaderFile