mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
The following headers have been removed: - Graphic3d_TypeOfPolygon - Graphic3d_TypeOfPrimitive - Graphic3d_Array1OfVector.hxx - Graphic3d_Array1OfVertex.hxx - Graphic3d_Array2OfVertex.hxx - Graphic3d_CBitFields4.hxx - Graphic3d_CBitFields8.hxx - Graphic3d_CBitFields16.hxx - Graphic3d_CBitFields20.hxx - Graphic3d_CStructurePtr.hxx - Graphic3d_CycleError.hxx - Graphic3d_DataStructure.pxx - Graphic3d_HSequenceOfStructure.hxx - Graphic3d_InitialisationError.hxx - Graphic3d_ListIteratorOfListOfShortReal.hxx - Graphic3d_ListOfShortReal.hxx - Graphic3d_NListOfHAsciiString.hxx - Graphic3d_StructureManagerPtr.hxx - Graphic3d_StructurePtr.hxx Graphic3d_StructureManager - remove default aspects, which have been never used. do not include non-existing header Graphic3d_Array1OfVertex.hxx from MFC sample Graphic3d_Group::MinMaxValues() - add missing Standard_EXPORT
72 lines
2.2 KiB
C++
Executable File
72 lines
2.2 KiB
C++
Executable File
#ifndef _Sample2D_Markers_HeaderFile
|
|
#define _Sample2D_Markers_HeaderFile
|
|
|
|
#include <Standard_Macro.hxx>
|
|
#include <Standard_DefineHandle.hxx>
|
|
#include <Graphic3d_ArrayOfPoints.hxx>
|
|
class Sample2D_Markers;
|
|
DEFINE_STANDARD_HANDLE(Sample2D_Markers,AIS_InteractiveObject)
|
|
class Sample2D_Markers : public AIS_InteractiveObject {
|
|
|
|
enum Sample2D_CurrentTypeOfMarker {
|
|
Sample2D_CTOM_Generic,
|
|
Sample2D_CTOM_Polyline,
|
|
Sample2D_CTOM_Circle,
|
|
Sample2D_CTOM_Ellips
|
|
} ;
|
|
|
|
public:
|
|
|
|
// Generic marker
|
|
Standard_EXPORT Sample2D_Markers (const Quantity_Length theXPosition ,
|
|
const Quantity_Length theYPosition ,
|
|
const Aspect_TypeOfMarker theMarkerType,
|
|
const Quantity_Color theColor,
|
|
const Standard_Real theScaleOrId=5.0);
|
|
|
|
// Polyline marker
|
|
Standard_EXPORT Sample2D_Markers (const Quantity_Length theXPosition ,
|
|
const Quantity_Length theYPosition ,
|
|
const Handle(Graphic3d_ArrayOfPoints)& theArrayOfPoints,
|
|
const Aspect_TypeOfMarker theMarkerType,
|
|
const Quantity_Color theColor,
|
|
const Standard_Real theScaleOrId=2.0);
|
|
|
|
|
|
DEFINE_STANDARD_RTTIEXT(Sample2D_Markers,AIS_InteractiveObject)
|
|
|
|
private:
|
|
|
|
virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
|
|
const Handle(Prs3d_Presentation)& /*aPresentation*/,
|
|
const Standard_Integer /*aMode*/);
|
|
|
|
virtual void ComputeSelection (const Handle(SelectMgr_Selection)& /*aSelection*/,
|
|
const Standard_Integer /*aMode*/) {}
|
|
|
|
|
|
Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& /*theContext*/) {}
|
|
|
|
|
|
|
|
Sample2D_CurrentTypeOfMarker myCurrentTypeOfMarker;
|
|
Quantity_Length myXPosition ;
|
|
Quantity_Length myYPosition ;
|
|
Aspect_TypeOfMarker myMarkerType;
|
|
Quantity_Color myColor;
|
|
Quantity_Length myWidth ;
|
|
Quantity_Length myHeight ;
|
|
Standard_Real myIndex ;//myScaleOrId
|
|
// specific polyline marker
|
|
Handle(Graphic3d_ArrayOfPoints) myArrayOfPoints;
|
|
};
|
|
|
|
|
|
|
|
// other inCurve functions and methods (like "C++: function call" methods)
|
|
//
|
|
|
|
|
|
|
|
#endif
|