Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EntityGUI_3DSketcherDlg.cxx File Reference
#include <cmath>
#include <string>
#include <boost/lexical_cast.hpp>
#include "EntityGUI_3DSketcherDlg.h"
#include "EntityGUI_Widgets.h"
#include <Basics_OCCTVersion.hxx>
#include <GEOMBase.h>
#include <GeometryGUI.h>
#include <Precision.hxx>
#include <DlgRef.h>
#include <SUIT_Session.h>
#include <SUIT_Desktop.h>
#include <SUIT_MessageBox.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_ViewWindow.h>
#include <SUIT_ViewManager.h>
#include <SOCC_Prs.h>
#include <SOCC_ViewModel.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_DoubleSpinBox.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Tools.h>
#include <TopoDS.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <BRepBuilderAPI_MakePolygon.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <AIS_Trihedron.hxx>
#include <AIS_AngleDimension.hxx>
#include <AIS_LengthDimension.hxx>
#include <Geom_Axis2Placement.hxx>
#include <Geom_Plane.hxx>
#include <SelectMgr_Selection.hxx>
#include <gce_MakePln.hxx>
#include <Prs3d_LineAspect.hxx>
#include <Prs3d_DimensionAspect.hxx>
#include <Prs3d_TextAspect.hxx>
#include <Prs3d_Presentation.hxx>
#include <Prs3d_Text.hxx>
#include <Graphic3d_VerticalTextAlignment.hxx>
#include <Graphic3d_HorizontalTextAlignment.hxx>
#include <Graphic3d_AspectText3d.hxx>
#include <Font_FontAspect.hxx>
#include <GEOMImpl_Types.hxx>

Classes

class  Locker
 

Enumerations

enum  { OXY, OYZ, OXZ }
 

Functions

 DEFINE_STANDARD_HANDLE (AIS_Text, AIS_InteractiveObject) class AIS_Text
 
 AIS_Text (const TCollection_ExtendedString &, const gp_Pnt &, Quantity_Color color, Standard_Integer aHJust, Standard_Integer aVJust, Standard_Real Angle, Standard_Boolean Zoom, Standard_Real Height, Font_FontAspect FontAspect, Standard_CString Font)
 
void Compute (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode)
 
void ComputeSelection (const Handle(SelectMgr_Selection)&aSelection, const Standard_Integer aMode)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (AIS_Text, AIS_InteractiveObject) AIS_Text
 
bool isSame (double d1, double d2)
 
 Handle (AIS_LengthDimension) EntityGUI_3DSketcherDlg = new AIS_LengthDimension( aPnt1, aPnt2, aPln )
 
 Handle (AIS_AngleDimension) EntityGUI_3DSketcherDlg = new AIS_AngleDimension( aPnt1, aPnt2, aPnt3 )
 

Variables

TCollection_ExtendedString aText
 
gp_Pnt aPosition
 
Standard_Real Red
 
Standard_Real Green
 
Standard_Real Blue
 
Standard_Real aAngle
 
Standard_Real aHeight
 
Standard_Boolean aZoomable
 
Quantity_Color aColor
 
Standard_CString aFont
 
Font_FontAspect aFontAspect
 
Graphic3d_HorizontalTextAlignment aHJustification
 
Graphic3d_VerticalTextAlignment aVJustification
 

Enumeration Type Documentation

anonymous enum
Enumerator
OXY 
OYZ 
OXZ 

Function Documentation

AIS_Text ( const TCollection_ExtendedString &  ,
const gp_Pnt &  ,
Quantity_Color  color,
Standard_Integer  aHJust,
Standard_Integer  aVJust,
Standard_Real  Angle,
Standard_Boolean  Zoom,
Standard_Real  Height,
Font_FontAspect  FontAspect,
Standard_CString  Font 
)
void Compute ( const Handle(PrsMgr_PresentationManager3d)&  aPresentationManager,
const Handle(Prs3d_Presentation)&  aPresentation,
const Standard_Integer  aMode 
)
private
void ComputeSelection ( const Handle(SelectMgr_Selection)&  aSelection,
const Standard_Integer  aMode 
)
private
DEFINE_STANDARD_HANDLE ( AIS_Text  ,
AIS_InteractiveObject   
)
Handle ( AIS_LengthDimension  ) = new AIS_LengthDimension( aPnt1, aPnt2, aPln )
protected

References anIO, and Handle().

Handle ( AIS_AngleDimension  ) = new AIS_AngleDimension( aPnt1, aPnt2, aPnt3 )
protected

References anIO, Handle(), and NULL.

bool isSame ( double  d1,
double  d2 
)
protected
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( AIS_Text  ,
AIS_InteractiveObject   
)
protected

Variable Documentation

Standard_Real aAngle
Quantity_Color aColor
Standard_CString aFont
Font_FontAspect aFontAspect
Standard_Real aHeight
Graphic3d_HorizontalTextAlignment aHJustification
gp_Pnt aPosition
TCollection_ExtendedString aText
Graphic3d_VerticalTextAlignment aVJustification
Standard_Boolean aZoomable
Standard_Real Blue
Standard_Real Green
Standard_Real Red