mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025546: Visualization - remove unused methods and classes from package Aspect
Remove global methods Aspect::ToCString(), Aspect::ValuesOfFOSP(), Aspect::Inverse(). Remove class Aspect_Edge, Aspect_Array1OfEdge and Aspect_EdgeDefinitionError. Remove enumerations Aspect_TypeOfFont, Aspect_TypeOfText, Aspect_CardinalPoints, Aspect_TypeOfRenderingMode, Aspect_TypeOfColorSpace, Aspect_FormatOfSheetPaper. update MFC samples
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include "GeometryView2D.h"
|
||||
#include ".\Resource2d\RectangularGrid.h"
|
||||
#include ".\Resource2d\CircularGrid.h"
|
||||
#include <Aspect.hxx>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNSGView
|
||||
|
@@ -28,14 +28,13 @@ ISession_Text::ISession_Text
|
||||
const Standard_Real anX , // = 0
|
||||
const Standard_Real anY , // = 0
|
||||
const Standard_Real aZ , // = 0
|
||||
const Aspect_TypeOfText aType, // = SOLID,
|
||||
const Quantity_PlaneAngle anAngle, // = 0.0
|
||||
const Standard_Real aslant, // = 0.0
|
||||
const Standard_Integer aColorIndex, // = 0
|
||||
const Standard_Integer aFontIndex, // = 1
|
||||
const Quantity_Factor aScale) // = 1
|
||||
:AIS_InteractiveObject(),MyText(aText),MyX(anX),MyY(anY),MyZ(aZ),
|
||||
MyTypeOfText(aType),MyAngle(anAngle),MySlant(aslant),MyFontIndex(aFontIndex),
|
||||
MyAngle(anAngle),MySlant(aslant),MyFontIndex(aFontIndex),
|
||||
MyColorIndex(aColorIndex),MyScale(aScale),MyWidth(0),MyHeight(0)
|
||||
{
|
||||
|
||||
@@ -44,14 +43,13 @@ ISession_Text::ISession_Text
|
||||
ISession_Text::ISession_Text
|
||||
(const TCollection_AsciiString& aText,
|
||||
gp_Pnt& aPoint,
|
||||
const Aspect_TypeOfText aType, // = SOLID,
|
||||
const Quantity_PlaneAngle anAngle, // = 0.0
|
||||
const Standard_Real aslant, // = 0.0
|
||||
const Standard_Integer aColorIndex, // = 0
|
||||
const Standard_Integer aFontIndex, // = 1
|
||||
const Quantity_Factor aScale) // = 1
|
||||
:AIS_InteractiveObject(),MyText(aText),MyX(aPoint.X()),MyY(aPoint.Y()),MyZ(aPoint.Z()),
|
||||
MyTypeOfText(aType),MyAngle(anAngle),MySlant(aslant),MyFontIndex(aFontIndex),
|
||||
MyAngle(anAngle),MySlant(aslant),MyFontIndex(aFontIndex),
|
||||
MyColorIndex(aColorIndex),MyScale(aScale),MyWidth(0),MyHeight(0)
|
||||
{
|
||||
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include <Standard_Macro.hxx>
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Quantity_Factor.hxx>
|
||||
@@ -37,7 +36,6 @@ public:
|
||||
const Standard_Real anX = 0 ,
|
||||
const Standard_Real anY = 0 ,
|
||||
const Standard_Real aZ = 0 ,
|
||||
const Aspect_TypeOfText aType = Aspect_TOT_SOLID,
|
||||
const Quantity_PlaneAngle anAngle = 0.0 ,
|
||||
const Standard_Real aSlant = 0.0 ,
|
||||
const Standard_Integer aColorIndex = 1 ,
|
||||
@@ -46,7 +44,6 @@ public:
|
||||
ISession_Text
|
||||
(const TCollection_AsciiString& aText,
|
||||
gp_Pnt& aPoint,
|
||||
const Aspect_TypeOfText aType = Aspect_TOT_SOLID,
|
||||
const Quantity_PlaneAngle anAngle = 0.0 ,
|
||||
const Standard_Real aSlant = 0.0 ,
|
||||
const Standard_Integer aColorIndex = 1 ,
|
||||
@@ -60,8 +57,6 @@ inline TCollection_AsciiString GetText() const;
|
||||
inline void SetText(const TCollection_AsciiString& atext) ;
|
||||
inline void GetCoord(Standard_Real& X, Standard_Real& Y, Standard_Real& Z) const ;
|
||||
inline void SetCoord(const Standard_Real X, const Standard_Real Y, const Standard_Real Z=0);
|
||||
inline Aspect_TypeOfText GetTypeOfText() const;
|
||||
inline void SetTypeOfText(const Aspect_TypeOfText aNewTypeOfText) ;
|
||||
inline Standard_Real GetAngle() const;
|
||||
inline void SetAngle(const Standard_Real aNewAngle) ;
|
||||
inline Standard_Real GetSlant() const;
|
||||
@@ -93,7 +88,6 @@ TCollection_AsciiString MyText ;
|
||||
Standard_Real MyX ;
|
||||
Standard_Real MyY ;
|
||||
Standard_Real MyZ ;
|
||||
Aspect_TypeOfText MyTypeOfText ;
|
||||
Standard_Real MyAngle ;
|
||||
Standard_Real MySlant ;
|
||||
Standard_Integer MyColorIndex ;
|
||||
@@ -120,12 +114,6 @@ inline void ISession_Text::GetCoord(Standard_Real& X, Standard_Real& Y, Standard
|
||||
inline void ISession_Text::SetCoord(const Standard_Real X, const Standard_Real Y, const Standard_Real Z)
|
||||
{ MyX = X ; MyY = Y ; MyZ = Z ;}
|
||||
|
||||
inline Aspect_TypeOfText ISession_Text::GetTypeOfText() const
|
||||
{ return MyTypeOfText; }
|
||||
|
||||
inline void ISession_Text::SetTypeOfText(const Aspect_TypeOfText aNewTypeOfText)
|
||||
{ MyTypeOfText = aNewTypeOfText; }
|
||||
|
||||
inline Standard_Real ISession_Text::GetAngle() const
|
||||
{ return MyAngle; }
|
||||
|
||||
|
@@ -83,7 +83,6 @@
|
||||
#include <Aspect_TypeOfline.hxx>
|
||||
#include <Aspect_WidthOfline.hxx>
|
||||
#include <Aspect_Background.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
|
||||
#include <BRepPrimAPI_MakeBox.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
|
@@ -72,7 +72,6 @@ void CViewer2dDoc::OnBUTTONTestText()
|
||||
Handle (Sample2D_Text) aText =
|
||||
new Sample2D_Text(Text,
|
||||
gp_Pnt(0.0,15.0*(j-15.0),0.0), // thePosition
|
||||
Aspect_TOT_SOLID, // theType
|
||||
10.0*M_PI, // theAngle
|
||||
(Quantity_NameOfColor)(aColor++), // theColor
|
||||
Font_FA_Regular, // theFontAspect
|
||||
@@ -91,7 +90,6 @@ void CViewer2dDoc::OnBUTTONTestText()
|
||||
Handle (Sample2D_Text) aText =
|
||||
new Sample2D_Text(Text,
|
||||
gp_Pnt(80.,15.0*(j-10.0),0.0), // thePosition
|
||||
Aspect_TOT_SOLID, // theType
|
||||
0.0, // theAngle
|
||||
(Quantity_NameOfColor)(aColor++), // theColor
|
||||
Font_FA_BoldItalic, // theFontAspect
|
||||
@@ -110,7 +108,6 @@ void CViewer2dDoc::OnBUTTONTestText()
|
||||
Handle (Sample2D_Text) aText =
|
||||
new Sample2D_Text(Text,
|
||||
gp_Pnt(140.0,15.0*(j-5.0),0.0), // thePosition
|
||||
Aspect_TOT_SOLID, // theType
|
||||
0.0, // theAngle
|
||||
(Quantity_NameOfColor)(aColor++), // theColor
|
||||
Font_FA_Bold, // theFontAspect
|
||||
@@ -127,7 +124,6 @@ for (j=10;j<=15;j++)
|
||||
Handle (Sample2D_Text) aText =
|
||||
new Sample2D_Text(Text,
|
||||
gp_Pnt(200.0,15.0*(j-10.0),0.0), // thePosition
|
||||
Aspect_TOT_SOLID, // theType
|
||||
0.0, // theAngle
|
||||
(Quantity_NameOfColor)(aColor++),// theColor
|
||||
Font_FA_Italic, // theFontAspect
|
||||
|
@@ -10,7 +10,6 @@
|
||||
#include "Viewer3dDoc.h"
|
||||
|
||||
#include <V3d_View.hxx>
|
||||
#include <Aspect.hxx>
|
||||
#include <Quantity_NameOfColor.hxx>
|
||||
|
||||
#include "..\res\resource.h"
|
||||
|
@@ -51,7 +51,6 @@
|
||||
|
||||
#include <Aspect_Background.hxx>
|
||||
#include <Aspect_TypeOfline.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Aspect_WidthOfline.hxx>
|
||||
#include <Aspect_Window.hxx>
|
||||
#include <Bnd_Box2d.hxx>
|
||||
|
@@ -48,7 +48,6 @@
|
||||
|
||||
#include <Aspect_Background.hxx>
|
||||
#include <Aspect_TypeOfLine.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Aspect_WidthOfLine.hxx>
|
||||
#include <Bnd_Box2d.hxx>
|
||||
#include <BndLib_Add2dCurve.hxx>
|
||||
|
@@ -114,7 +114,6 @@
|
||||
|
||||
#include <Aspect_Background.hxx>
|
||||
#include <Aspect_TypeOfline.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Aspect_WidthOfline.hxx>
|
||||
#include <Bnd_Box2d.hxx>
|
||||
#include <BndLib_Add2dCurve.hxx>
|
||||
|
@@ -125,7 +125,6 @@ enum CurrentAction3d {
|
||||
|
||||
#include <Aspect_Background.hxx>
|
||||
#include <Aspect_TypeOfline.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Aspect_WidthOfline.hxx>
|
||||
#include <Bnd_Box2d.hxx>
|
||||
#include <BndLib_Add2dCurve.hxx>
|
||||
|
@@ -5,7 +5,6 @@
|
||||
|
||||
#include <OSD_File.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <Aspect_CardinalPoints.hxx>
|
||||
#include <Quantity_Factor.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
|
@@ -7,7 +7,6 @@ IMPLEMENT_STANDARD_RTTIEXT(Sample2D_Text,AIS_InteractiveObject)
|
||||
|
||||
Sample2D_Text::Sample2D_Text (const TCollection_AsciiString& theText,
|
||||
const gp_Pnt& thePosition,
|
||||
const Aspect_TypeOfText theType,
|
||||
const Quantity_PlaneAngle theAngle,
|
||||
const Quantity_Color theColor,
|
||||
const Font_FontAspect theFontAspect,
|
||||
@@ -20,7 +19,6 @@ Sample2D_Text::Sample2D_Text (const TCollection_AsciiString& theText,
|
||||
{
|
||||
myText = theText ;
|
||||
myPosition = thePosition ;
|
||||
myTypeOfText = theType ;
|
||||
myAngle = theAngle ;
|
||||
myColor = theColor ;
|
||||
myFontAspect = theFontAspect;
|
||||
|
@@ -15,7 +15,6 @@ public:
|
||||
|
||||
Standard_EXPORT
|
||||
Sample2D_Text (const TCollection_AsciiString& theText,const gp_Pnt& thePosition,
|
||||
const Aspect_TypeOfText theType = Aspect_TOT_SOLID,
|
||||
const Quantity_PlaneAngle theAngle = 0.0 ,
|
||||
const Quantity_Color theColor = Quantity_NOC_YELLOW,
|
||||
const Font_FontAspect theFontAspect = Font_FA_Regular,
|
||||
@@ -29,8 +28,6 @@ inline TCollection_AsciiString GetText() const { return myText ; }
|
||||
inline void SetText(const TCollection_AsciiString& theText) { myText = theText; }
|
||||
inline void GetCoord(gp_Pnt& thePosition) const { thePosition=gp_Pnt(myPosition); }
|
||||
inline void SetCoord(const gp_Pnt& thePosition) { myPosition = thePosition; }
|
||||
inline Standard_Integer GetTypeOfText() const { return myTypeOfText; }
|
||||
inline void SetTypeOfText(const Aspect_TypeOfText theTypeOfText) { myTypeOfText = theTypeOfText; }
|
||||
inline Standard_Real GetAngle() const { return myAngle; }
|
||||
inline void SetAngle(const Standard_Real theAngle) { myAngle = theAngle; }
|
||||
inline Quantity_Color GetColor() const { return myColor; }
|
||||
@@ -58,7 +55,6 @@ private:
|
||||
|
||||
TCollection_AsciiString myText ;
|
||||
gp_Pnt myPosition ;
|
||||
Aspect_TypeOfText myTypeOfText ;
|
||||
Standard_Real myAngle ;
|
||||
Quantity_Color myColor ;
|
||||
Standard_CString myFont ;
|
||||
|
@@ -35,7 +35,6 @@
|
||||
#include <AIS_TexturedShape.hxx>
|
||||
#include <Aspect_Grid.hxx>
|
||||
#include <Aspect_PolygonOffsetMode.hxx>
|
||||
#include <Aspect_TypeOfText.hxx>
|
||||
#include <Aspect_DisplayConnection.hxx>
|
||||
#include <Aspect_AspectMarker.hxx>
|
||||
|
||||
|
@@ -19,7 +19,6 @@ IMPLEMENT_STANDARD_RTTIEXT(User_Cylinder,AIS_InteractiveObject)
|
||||
#include <TColgp_Array1OfDir.hxx>
|
||||
#include <GProp_PGProps.hxx>
|
||||
#include <Graphic3d_Array1OfVertex.hxx>
|
||||
#include <Aspect_Array1OfEdge.hxx>
|
||||
#include <Quantity_Color.hxx>
|
||||
#include <BRepMesh_IncrementalMesh.hxx>
|
||||
#include <Prs3d.hxx>
|
||||
|
Reference in New Issue
Block a user