#include <Quantity_Color.hxx>
class Geom_Axis2Placement;
-class AIS_Axis;
-class AIS_Point;
-class AIS_Plane;
-class Geom_Transformation;
-class gp_Trsf;
//! Create a selectable trihedron
//! The trihedron includes 1 origin, 3 axes and 3 labels.
//! Standard_DEPRECATED("This method is deprecated - SetColor() should be called instead")
Standard_EXPORT void SetAxisColor (const Quantity_Color& theColor);
+ //! Returns true if arrows are to be drawn
+ Standard_EXPORT Standard_Boolean ToDrawArrows() const;
+
+ //! Sets whether to draw the arrows in visualization
+ Standard_EXPORT void SetDrawArrows (const Standard_Boolean theToDraw);
+
//! Sets priority of selection for owner of the given type
void SetSelectionPriority (Prs3d_DatumParts thePart,
Standard_Integer thePriority)
public:
- //! Disables auto highlighting to use HilightSelected() and HilightOwnerWithColor() overridden methods.
- virtual Standard_Boolean IsAutoHilight() const Standard_OVERRIDE { return false; }
-
//! Method which clear all selected owners belonging
//! to this selectable object ( for fast presentation draw ).
Standard_EXPORT virtual void ClearSelected() Standard_OVERRIDE;
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode) Standard_OVERRIDE;
- //! This compute is unavailable for trihedron presentation.
- void Compute (const Handle(Prs3d_Projector)& , const Handle(Prs3d_Presentation)& ) Standard_OVERRIDE {}
-
- //! This compute is unavailable for trihedron presentation.
- Standard_EXPORT virtual void Compute (const Handle(Prs3d_Projector)& theProjector,
- const Handle(Geom_Transformation)& theTrsf,
- const Handle(Prs3d_Presentation)& thePrs) Standard_OVERRIDE;
-
//! Compute selection.
Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
const Standard_Integer theMode) Standard_OVERRIDE;
-protected:
+ //! Dumps the content of me into the stream
+ Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
- Standard_EXPORT void LoadRecomputable (const Standard_Integer theMode);
+protected:
//! Creates a sensitive entity for the datum part that will be used in selection owner creation.
- Standard_EXPORT Handle(SelectBasics_SensitiveEntity) createSensitiveEntity (const Prs3d_DatumParts thePart,
- const Handle(SelectBasics_EntityOwner)& theOwner) const;
+ Standard_EXPORT Handle(Select3D_SensitiveEntity) createSensitiveEntity (const Prs3d_DatumParts thePart,
+ const Handle(SelectMgr_EntityOwner)& theOwner) const;
//! Computes presentation for display mode equal 1.
Standard_EXPORT void computePresentation (const Handle(PrsMgr_PresentationManager3d)& thePrsMgr,
const gp_Dir& theYDir,
const gp_Dir& theZDir);
- //! Returns highlight line aspect , create if it is the first call
- Handle(Prs3d_ShadingAspect) getHighlightAspect();
- //! Returns highlight line aspect , create if it is the first call
- Handle(Prs3d_LineAspect) getHighlightLineAspect();
- //! Returns highlight line aspect , create if it is the first call
- Handle(Prs3d_PointAspect) getHighlightPointAspect();
-
protected:
Standard_Boolean myHasOwnSize;
Standard_Boolean myHasOwnTextColor;
NCollection_DataMap<Prs3d_DatumParts, Handle(Graphic3d_Group)> myPartToGroup;
NCollection_List<Prs3d_DatumParts> mySelectedParts;
-
- Handle(Prs3d_ShadingAspect) myHighlightAspect;
- Handle(Prs3d_LineAspect) myHighlightLineAspect;
- Handle(Prs3d_PointAspect) myHighlightPointAspect;
+ Handle(Graphic3d_AspectLine3d) myHiddenLineAspect;
NCollection_DataMap<Prs3d_DatumParts, Handle(Graphic3d_ArrayOfPrimitives)> myPrimitives;
};