1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022819: Redesign of OpenGl driver

This commit is contained in:
SAN, KGV
2012-02-03 12:59:15 +00:00
committed by bugmaster
parent 1d2b1ccb45
commit 2166f0fad8
362 changed files with 19749 additions and 57863 deletions

View File

@@ -28,24 +28,6 @@ Graphic3d_CView.cxx
Graphic3d_CView.hxx
Graphic3d_CGraduatedTrihedron.cxx
Graphic3d_CGraduatedTrihedron.hxx
Graphic3d_GraphicDriver_1.cxx
Graphic3d_GraphicDriver_2.cxx
Graphic3d_GraphicDriver_3.cxx
Graphic3d_GraphicDriver_4.cxx
Graphic3d_GraphicDriver_5.cxx
Graphic3d_GraphicDriver_6.cxx
Graphic3d_GraphicDriver_7.cxx
Graphic3d_GraphicDriver_703.cxx
Graphic3d_GraphicDriver_705.cxx
Graphic3d_GraphicDriver_707.cxx
Graphic3d_GraphicDriver_709.cxx
Graphic3d_GraphicDriver_710.cxx
Graphic3d_GraphicDriver_711.cxx
Graphic3d_GraphicDriver_712.cxx
Graphic3d_GraphicDriver_8.cxx
Graphic3d_GraphicDriver_9.cxx
Graphic3d_GraphicDriver_Layer.cxx
Graphic3d_GraphicDriver_Print.cxx
Graphic3d_Structure.pxx
Graphic3d_Group.pxx
Graphic3d_Group_1.cxx
@@ -58,7 +40,6 @@ Graphic3d_Group_8.cxx
Graphic3d_Group_9.cxx
Graphic3d_Group_10.cxx
Graphic3d_Group_11.cxx
Graphic3d_Group_12.cxx
Graphic3d_Structure.pxx
Graphic3d_DataStructure.pxx
Graphic3d_StructureManager.pxx
@@ -67,11 +48,9 @@ Graphic3d_CMPLRS.edl
Graphic3d_WOKSteps.edl
Graphic3d_PrimitiveArray.hxx
Graphic3d_Group_13.cxx
Graphic3d_GraphicDriver_713.cxx
Graphic3d_TransModeFlags.hxx
Graphic3d_CTransPersStruct.hxx
Graphic3d_CTransPersStruct.cxx
Graphic3d_GraphicDriver_Export.cxx
Graphic3d_NListOfHAsciiString.hxx
Graphic3d_AspectText3d.cxx
Graphic3d_WNTGraphicDevice.cxx

View File

@@ -33,11 +33,10 @@ deferred class GraphicDriver from Graphic3d inherits GraphicDriver from Aspect
---Version:
---Purpose: This class allows the definition of a graphic
-- driver and encapsulates the Pex driver, the
-- OpenGl driver, the Optimizer driver and the Phigs driver.
---Purpose: This class allows the definition of a graphic driver
-- (currently only OpenGl driver is used).
---Keywords: Pex, OpenGl, Optimizer, Phigs
---Keywords: OpenGl
---Warning:
---References:
@@ -400,7 +399,7 @@ is
AColor2: Color from Quantity;
FillStyle : GradientFillMethod from Aspect
)
is virtual;
is deferred;
---Purpose: call_togl_gradient_background
@@ -418,7 +417,7 @@ is
SetBgGradientStyle( me : mutable;
ACView : CView from Graphic3d;
FillStyle : GradientFillMethod from Aspect )
is virtual;
is deferred;
ClipLimit ( me : mutable;
ACView : CView from Graphic3d;
@@ -714,46 +713,6 @@ is
is deferred;
---Purpose: call_togl_quadrangle
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNT from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_polygon_indices
----------------------------------------
-- Category: Methods to create Text
-- for Purpose : see Graphic3d_Group.cdl
@@ -884,7 +843,7 @@ is
EnableVBO( me : mutable;
status : Boolean from Standard )
is virtual;
is deferred;
---Purpose: enables/disables usage of OpenGL vertex buffer arrays while drawing primitiev arrays
----------------------------------------
@@ -949,26 +908,6 @@ is
---Purpose: call_togl_graduatedtrihedron_minmaxvalues
is deferred;
----------------------------------------
-- Category: Internal methods
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Bezier ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_bezier
Bezier ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
ListWeight : Array1OfReal from TColStd;
EvalMinMax : Boolean from Standard = Standard_True )
is deferred;
---Purpose: call_togl_bezier_weight
---------------------------
-- Category: Animation mode
---------------------------
@@ -1202,7 +1141,7 @@ is
R : ShortReal from Standard;
G : ShortReal from Standard;
B : ShortReal from Standard )
is virtual;
is deferred;
---Purpose: call_togl_set_text_attributes
Text ( me : mutable;

View File

@@ -1,55 +0,0 @@
// File Graphic3d_GraphicDriver_1.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// Modified 02.15.100 : JR : Clutter
// GG 27/12/02 IMP120302 Add new method Begin(Aspect_Display)
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
Standard_Boolean Graphic3d_GraphicDriver::Begin (const Standard_CString ) {
return Standard_True;
}
//RIC120302
Standard_Boolean Graphic3d_GraphicDriver::Begin (const Aspect_Display)
{
return Standard_True;
}
//RIC120302
void Graphic3d_GraphicDriver::End () {
}
void Graphic3d_GraphicDriver::BeginAnimation (const Graphic3d_CView&
)
{
}
void Graphic3d_GraphicDriver::EndAnimation (const Graphic3d_CView&
)
{
}

View File

@@ -1,62 +0,0 @@
// File Graphic3d_GraphicDriver_2.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 15/09/97 ; PCT : ajout InquireTextureAvailable() pour les textures
// 11/97 ; CAL : retrait de la dependance avec math
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <TColStd_Array2OfReal.hxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
Standard_Integer Graphic3d_GraphicDriver::InquireLightLimit () {
return Standard_False;
}
void Graphic3d_GraphicDriver::InquireMat (const Graphic3d_CView&
, TColStd_Array2OfReal&
, TColStd_Array2OfReal&
)
{
}
Standard_Integer Graphic3d_GraphicDriver::InquirePlaneLimit ()
{
return Standard_False;
}
Standard_Integer Graphic3d_GraphicDriver::InquireViewLimit ()
{
return Standard_False;
}
Standard_Boolean Graphic3d_GraphicDriver::InquireTextureAvailable ()
{
return Standard_False;
}

View File

@@ -1,66 +0,0 @@
// File Graphic3d_GraphicDriver_3.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::ClearGroup (const Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::CloseGroup (const Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::FaceContextGroup (const Graphic3d_CGroup& , const Standard_Integer NoInsert) {
}
void Graphic3d_GraphicDriver::Group (Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::LineContextGroup (const Graphic3d_CGroup& , const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::MarkerContextGroup (const Graphic3d_CGroup& , const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::MarkerContextGroup (const Graphic3d_CGroup& , const Standard_Integer, const Standard_Integer, const Standard_Integer, const Handle(TColStd_HArray1OfByte)& ) {
}
void Graphic3d_GraphicDriver::OpenGroup (const Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::RemoveGroup (const Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::TextContextGroup (const Graphic3d_CGroup& , const Standard_Integer ) {
}

View File

@@ -1,54 +0,0 @@
// File Graphic3d_GraphicDriver_4.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::ClearStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::Connect (const Graphic3d_CStructure& , const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::ContextStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::Disconnect (const Graphic3d_CStructure& , const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::DisplayStructure (const Graphic3d_CView& , const Graphic3d_CStructure& , const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::EraseStructure (const Graphic3d_CView& , const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::RemoveStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::Structure (Graphic3d_CStructure& ) {
}

View File

@@ -1,51 +0,0 @@
// File Graphic3d_GraphicDriver_5.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::DumpGroup (const Graphic3d_CGroup& ) {
}
void Graphic3d_GraphicDriver::DumpStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::DumpView (const Graphic3d_CView& ) {
}
Standard_Boolean Graphic3d_GraphicDriver::ElementExploration (const Graphic3d_CStructure & , const Standard_Integer , Graphic3d_VertexNC& , Graphic3d_Vector& ) {
return Standard_False;
}
Graphic3d_TypeOfPrimitive Graphic3d_GraphicDriver::ElementType (const Graphic3d_CStructure & , const Standard_Integer ) {
return Graphic3d_TOP_UNDEFINED;
}

View File

@@ -1,39 +0,0 @@
// File Graphic3d_GraphicDriver_6.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::InitPick () {
}
void Graphic3d_GraphicDriver::Pick (Graphic3d_CPick& ) {
}
void Graphic3d_GraphicDriver::PickId (const Graphic3d_CGroup& ) {
}

View File

@@ -1,125 +0,0 @@
// File Graphic3d_GraphicDriver_7.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// Modified GG 10/11/99 PRO19603 Change the Redraw method (add redraw area capabillity)
// EUG 07/10/99 G003 Add DegenerateStructure() and
// SetBackFacingModel() methods.
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::ActivateView (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::AntiAliasing (const Graphic3d_CView& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Background (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::GradientBackground( const Graphic3d_CView& ACView,
const Quantity_Color& AColor1, const Quantity_Color& AColor2,
const Aspect_GradientFillMethod AType ){
}
void Graphic3d_GraphicDriver::Blink (const Graphic3d_CStructure& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::BoundaryBox (const Graphic3d_CStructure& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::HighlightColor (const Graphic3d_CStructure& , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::NameSetStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::ClipLimit (const Graphic3d_CView& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::DeactivateView (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::DepthCueing (const Graphic3d_CView& , const Standard_Boolean ) {
}
Standard_Boolean Graphic3d_GraphicDriver::ProjectRaster (const Graphic3d_CView& , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , Standard_Integer& , Standard_Integer& ) {
return Standard_False;
}
Standard_Boolean Graphic3d_GraphicDriver::UnProjectRaster (const Graphic3d_CView& , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& ) {
return Standard_False;
}
Standard_Boolean Graphic3d_GraphicDriver::UnProjectRasterWithRay (const Graphic3d_CView& , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& ) {
return Standard_False;
}
void Graphic3d_GraphicDriver::RatioWindow (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::Redraw (const Graphic3d_CView& , const Aspect_CLayer2d& , const Aspect_CLayer2d& , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::RemoveView (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::SetLight (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::SetPlane (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::SetVisualisation (const Graphic3d_CView& ) {
}
void Graphic3d_GraphicDriver::TransformStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver :: DegenerateStructure ( const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::Transparency (const Graphic3d_CView& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Update (const Graphic3d_CView& , const Aspect_CLayer2d& , const Aspect_CLayer2d& ) {
}
Standard_Boolean Graphic3d_GraphicDriver::View (Graphic3d_CView& ) {
return Standard_True;
}
void Graphic3d_GraphicDriver::ViewMapping (const Graphic3d_CView& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::ViewOrientation (const Graphic3d_CView& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver :: SetBackFacingModel ( const Graphic3d_CView& ) {
} // end Graphic3d_GraphicDriver :: SetBackFacingModel

View File

@@ -1,36 +0,0 @@
// File Graphic3d_GraphicDriver_703.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_TypeOfMarker.hxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Marker (const Graphic3d_CGroup& , const Graphic3d_Vertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::MarkerSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Standard_Boolean ) {
}

View File

@@ -1,61 +0,0 @@
// File Graphic3d_GraphicDriver_705.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// Modified
// 27/07/97 ; PCT : ajout coordonnee texture
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Polygon (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Graphic3d_TypeOfPolygon , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polygon (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Graphic3d_Vector& , const Graphic3d_TypeOfPolygon , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polygon (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexN& , const Graphic3d_TypeOfPolygon , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polygon (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexN& , const Graphic3d_Vector& , const Graphic3d_TypeOfPolygon , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polygon(const Graphic3d_CGroup& ,const Graphic3d_Array1OfVertexNT& ,const Graphic3d_TypeOfPolygon ,const Standard_Boolean )
{
}
void Graphic3d_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& , const TColStd_Array1OfInteger& , const Graphic3d_Array1OfVertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& , const TColStd_Array1OfInteger& , const Graphic3d_Array1OfVertex& , const Graphic3d_Vector& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& , const TColStd_Array1OfInteger& , const Graphic3d_Array1OfVertexN& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::PolygonHoles (const Graphic3d_CGroup& , const TColStd_Array1OfInteger& , const Graphic3d_Array1OfVertexN& , const Graphic3d_Vector& , const Standard_Boolean ) {
}

View File

@@ -1,39 +0,0 @@
// File Graphic3d_GraphicDriver_707.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 11/97 ; CAL : ajout polyline par 2 points
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Polyline (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polyline (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexC& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Polyline (const Graphic3d_CGroup& , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) {
}

View File

@@ -1,60 +0,0 @@
// File Graphic3d_GraphicDriver_709.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// Modified
// 27/08/97 ; PCT : ajout coordonnee texture
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::QuadrangleMesh (const Graphic3d_CGroup& , const Graphic3d_Array2OfVertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleMesh (const Graphic3d_CGroup& , const Graphic3d_Array2OfVertexN& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleMesh(const Graphic3d_CGroup& ,const Graphic3d_Array2OfVertexNT& ,const Standard_Boolean )
{
}
void Graphic3d_GraphicDriver::QuadrangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexN& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexC& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexNC& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::QuadrangleSet(const Graphic3d_CGroup& ,const Graphic3d_Array1OfVertexNT& ,const Aspect_Array1OfEdge& ,const Standard_Boolean )
{
}

View File

@@ -1,78 +0,0 @@
// File Graphic3d_GraphicDriver_710.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <TCollection_AsciiString.hxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Text (
const Graphic3d_CGroup& ,
const Standard_CString ,
const Graphic3d_Vertex& ,
const Standard_Real ,
const Quantity_PlaneAngle ,
const Graphic3d_TextPath ,
const Graphic3d_HorizontalTextAlignment ,
const Graphic3d_VerticalTextAlignment ,
const Standard_Boolean
)
{
}
void Graphic3d_GraphicDriver::Text (
const Graphic3d_CGroup& ,
const Standard_CString ,
const Graphic3d_Vertex& ,
const Standard_Real ,
const Standard_Boolean
)
{
}
void Graphic3d_GraphicDriver::Text (
const Graphic3d_CGroup& ,
const TCollection_ExtendedString& ,
const Graphic3d_Vertex& ,
const Standard_Real ,
const Quantity_PlaneAngle ,
const Graphic3d_TextPath ,
const Graphic3d_HorizontalTextAlignment ,
const Graphic3d_VerticalTextAlignment ,
const Standard_Boolean
)
{
}
void Graphic3d_GraphicDriver::Text (
const Graphic3d_CGroup& ,
const TCollection_ExtendedString& ,
const Graphic3d_Vertex& ,
const Standard_Real ,
const Standard_Boolean
)
{
}

View File

@@ -1,62 +0,0 @@
// File Graphic3d_GraphicDriver_711.cxx
// Created Mardi 28 janvier 1997
// Author CAL
//
// Modified
// 27/08/97 ; PCT : ajout coordonne texture
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::TriangleMesh (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleMesh (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexN& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleMesh(const Graphic3d_CGroup& ,const Graphic3d_Array1OfVertexNT& ,const Standard_Boolean )
{
}
void Graphic3d_GraphicDriver::TriangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexN& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexC& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleSet (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertexNC& , const Aspect_Array1OfEdge& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::TriangleSet(const Graphic3d_CGroup& ,const Graphic3d_Array1OfVertexNT& ,const Aspect_Array1OfEdge& ,const Standard_Boolean )
{
}

View File

@@ -1,36 +0,0 @@
// File Graphic3d_GraphicDriver_712.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Bezier (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Bezier (const Graphic3d_CGroup& , const Graphic3d_Array1OfVertex& , const TColStd_Array1OfReal& , const Standard_Boolean ) {
}

View File

@@ -1,53 +0,0 @@
// File OpenGl_GraphicDriver_713.cxx
// Created 22-10-01
// Author SAV
// 09/07/02 SAV - merged with file Graphic3d_GraphicDriver_713.cxx created 16/06/2000 by ATS for G005 study.
//Following routines are entry points for creation of PARRAY primitives for (used for presentation).
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
#define BUC61044 /* 25/10/01 SAV ; added functionality to control gl depth testing
from higher API */
#define BUC61045 /* 25/10/01 SAV ; added functionality to control gl lighting
from higher API */
void Graphic3d_GraphicDriver::SetDepthTestEnabled( const Graphic3d_CView&, const Standard_Boolean ) const {
}
Standard_Boolean Graphic3d_GraphicDriver::IsDepthTestEnabled( const Graphic3d_CView& ) const {
return Standard_True;
}
void Graphic3d_GraphicDriver::ReadDepths( const Graphic3d_CView&,
const Standard_Integer,
const Standard_Integer,
const Standard_Integer,
const Standard_Integer,
const Standard_Address ) const
{
}
void Graphic3d_GraphicDriver::SetGLLightEnabled( const Graphic3d_CView&, const Standard_Boolean ) const {
}
Standard_Boolean Graphic3d_GraphicDriver::IsGLLightEnabled( const Graphic3d_CView& ) const {
return Standard_True;
}
void Graphic3d_GraphicDriver :: PrimitiveArray ( const Graphic3d_CGroup&,const Graphic3d_PrimitiveArray&,const Standard_Boolean) {
}
void Graphic3d_GraphicDriver :: UserDraw ( const Graphic3d_CGroup&,
const Graphic3d_CUserDraw& )
{
}
void Graphic3d_GraphicDriver::EnableVBO( const Standard_Boolean )
{
}

View File

@@ -1,79 +0,0 @@
// File Graphic3d_GraphicDriver_8.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
Standard_Boolean Graphic3d_GraphicDriver::BeginAddMode (const Graphic3d_CView& ) {
return Standard_True;
}
void Graphic3d_GraphicDriver::EndAddMode (void) {
}
Standard_Boolean Graphic3d_GraphicDriver::BeginImmediatMode (const Graphic3d_CView& , const Aspect_CLayer2d& , const Aspect_CLayer2d& , const Standard_Boolean , const Standard_Boolean ) {
return Standard_True;
}
void Graphic3d_GraphicDriver::BeginPolyline () {
}
void Graphic3d_GraphicDriver::ClearImmediatMode (const Graphic3d_CView&, const Standard_Boolean ) {
}
void Graphic3d_GraphicDriver::Draw (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::DrawStructure (const Graphic3d_CStructure& ) {
}
void Graphic3d_GraphicDriver::EndImmediatMode (const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::EndPolyline () {
}
void Graphic3d_GraphicDriver::Move (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetLineColor (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetLineType (const Standard_Integer ) {
}
void Graphic3d_GraphicDriver::SetLineWidth (const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetMinMax (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::Transform (const TColStd_Array2OfReal& , const Graphic3d_TypeOfComposition ) {
}

View File

@@ -1,126 +0,0 @@
// File Graphic3d_GraphicDriver_8.cxx
// Created Mardi 28 janvier 1997
// Author CAL
// modified: 1/07/97 ; PCT : ajout texture mapping
// 16-09-98 ; BGN : Points d'entree du Triedre (S3819, Phase 1)
// 22-09-98 ; BGN : S3989 (anciennement S3819)
// TypeOfTriedron* from Aspect (pas Graphic3d)
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1997
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
//SAV 23/12/02 : Added methods to set background image.
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
#include <stdlib.h>
//-Aliases
//-Global data definitions
//-Methods, in order
Standard_Integer Graphic3d_GraphicDriver::CreateTexture(const Graphic3d_TypeOfTexture ,const Handle_AlienImage_AlienImage &,const Standard_CString,const Handle(TColStd_HArray1OfReal)& TexUpperBounds ) const
{
return -1;
}
void Graphic3d_GraphicDriver::DestroyTexture(const Standard_Integer ) const
{
}
void Graphic3d_GraphicDriver::ModifyTexture(const Standard_Integer ,const Graphic3d_CInitTexture& ) const
{
}
void Graphic3d_GraphicDriver::Environment(const Graphic3d_CView& )
{
}
//
// Triedron methods : the Triedron is a non-zoomable object.
//
void Graphic3d_GraphicDriver::ZBufferTriedronSetup (
const Quantity_NameOfColor,
const Quantity_NameOfColor,
const Quantity_NameOfColor,
const Standard_Real,
const Standard_Real,
const Standard_Integer)
{
}
void Graphic3d_GraphicDriver::TriedronDisplay (
const Graphic3d_CView& ,
const Aspect_TypeOfTriedronPosition ,
const Quantity_NameOfColor ,
const Standard_Real,
const Standard_Boolean )
{
}
void Graphic3d_GraphicDriver::TriedronErase (const Graphic3d_CView& )
{
}
void Graphic3d_GraphicDriver::TriedronEcho (const Graphic3d_CView& ,const Aspect_TypeOfTriedronEcho )
{
}
void Graphic3d_GraphicDriver::BackgroundImage( const Standard_CString /*FileName*/,
const Graphic3d_CView& /*ACView*/,
const Aspect_FillMethod /*FillStyle*/)
{
}
void Graphic3d_GraphicDriver::SetBgImageStyle( const Graphic3d_CView& /*ACView*/,
const Aspect_FillMethod /*FillStyle*/)
{
}
void Graphic3d_GraphicDriver::SetBgGradientStyle( const Graphic3d_CView& /*ACView*/,
const Aspect_GradientFillMethod /*FillStyle*/)
{
}
void Graphic3d_GraphicDriver::GraduatedTrihedronDisplay(const Graphic3d_CView&,
const Graphic3d_CGraduatedTrihedron&)
{
}
void Graphic3d_GraphicDriver::GraduatedTrihedronErase(const Graphic3d_CView&)
{
}
void Graphic3d_GraphicDriver::GraduatedTrihedronMinMaxValues(const Standard_ShortReal,
const Standard_ShortReal,
const Standard_ShortReal,
const Standard_ShortReal,
const Standard_ShortReal,
const Standard_ShortReal)
{
}

View File

@@ -1,25 +0,0 @@
/************************************************************************/
/* Includes */
/************************************************************************/
#include <Graphic3d_GraphicDriver.jxx>
/************************************************************************/
/* Print Methods */
/************************************************************************/
Standard_Boolean Graphic3d_GraphicDriver::Export (const Standard_CString theFileName,
const Graphic3d_ExportFormat theFormat,
const Graphic3d_SortType theSortType,
const Standard_Integer theW,
const Standard_Integer theH,
const Graphic3d_CView& theView,
const Aspect_CLayer2d& theLayerUnder,
const Aspect_CLayer2d& theLayerOver,
const Standard_Real thePrecision,
const Standard_Address theProgressBarFunc,
const Standard_Address theProgressObject)
{
return Standard_False;
}

View File

@@ -1,89 +0,0 @@
// File Graphic3d_GraphicDriver_Layer.cxx
// Created Mardi 3 novembre 1998
// Author CAL
// 02.15.100 : JR : Clutter
//-Copyright MatraDatavision 1998
//-Version
//-Design Declaration des variables specifiques aux Drivers
//-Warning Un driver encapsule les Pex et OpenGl drivers
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
//-Aliases
//-Global data definitions
//-Methods, in order
void Graphic3d_GraphicDriver::Layer (Aspect_CLayer2d& ) {
}
void Graphic3d_GraphicDriver::RemoveLayer (const Aspect_CLayer2d& ) {
}
void Graphic3d_GraphicDriver::BeginLayer (const Aspect_CLayer2d& ) {
}
void Graphic3d_GraphicDriver::BeginPolygon2d () {
}
void Graphic3d_GraphicDriver::BeginPolyline2d () {
}
void Graphic3d_GraphicDriver::ClearLayer (const Aspect_CLayer2d& ) {
}
void Graphic3d_GraphicDriver::Draw (const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::Edge (const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::EndLayer () {
}
void Graphic3d_GraphicDriver::EndPolygon2d () {
}
void Graphic3d_GraphicDriver::EndPolyline2d () {
}
void Graphic3d_GraphicDriver::Move (const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::Rectangle (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetColor (const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetTransparency (const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::UnsetTransparency () {
}
void Graphic3d_GraphicDriver::SetLineAttributes (const Standard_Integer , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::SetTextAttributes (const Standard_CString Font, const Standard_Integer AType, const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B) {
}
void Graphic3d_GraphicDriver::Text (const Standard_CString , const Standard_ShortReal , const Standard_ShortReal , const Standard_ShortReal ) {
}
void Graphic3d_GraphicDriver::TextSize (const Standard_CString , const Standard_ShortReal , Standard_ShortReal& , Standard_ShortReal& , Standard_ShortReal& ) const {
}

View File

@@ -1,27 +0,0 @@
// File Graphic3d_GraphicDriver_Print.c
// Created March 2000
// Author THA
// e-mail t-hartl@muenchen.matra-dtv.fr
/************************************************************************/
/* Includes */
/************************************************************************/
#include <Graphic3d_GraphicDriver.jxx>
#include <Aspect_DriverDefinitionError.hxx>
/************************************************************************/
/* Print Methods */
/************************************************************************/
Standard_Boolean Graphic3d_GraphicDriver::Print (const Graphic3d_CView& ,
const Aspect_CLayer2d& ,
const Aspect_CLayer2d& ,
const Aspect_Handle ,
const Standard_Boolean ,
const Standard_CString ,
const Aspect_PrintAlgo ,
const Standard_Real ) const
{
return Standard_False;
}

View File

@@ -606,77 +606,7 @@
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points.
raises GroupDefinitionError from Graphic3d is static;
QuadrangleSet ( me : mutable;
ListVertex : Array1OfVertex from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
---Level: Public
---Purpose: Creates a group of quadrangles defined by a table of
-- vertices and a table of edges, visible or not.
-- Category: Methods to create Quadrangle
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points or if <ListEdge> contains
-- less than four edges.
raises GroupDefinitionError from Graphic3d is static;
QuadrangleSet ( me : mutable;
ListVertex : Array1OfVertexN from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
---Level: Public
---Purpose: Creates a group of quadrangles defined by a table of
-- vertices and a table of edges, visible or not.
-- For each vertex the normal is given.
-- Category: Methods to create Quadrangle
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points or if <ListEdge> contains
-- less than four edges.
raises GroupDefinitionError from Graphic3d is static;
QuadrangleSet ( me : mutable;
ListVertex : Array1OfVertexNT from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
---Level: Public
---Purpose: Creates a group of quadrangles defined by a table of
-- vertices and a table of edges, visible or not.
-- For each vertex the normal is given.
-- For each vertex a texture coordinate is given.
-- Category: Methods to create Quadrangle
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points or if <ListEdge> contains
-- less than four edges.
raises GroupDefinitionError from Graphic3d is static;
QuadrangleSet ( me : mutable;
ListVertex : Array1OfVertexC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
---Level: Public
---Purpose: Creates a group of quadrangles defined by a table of
-- vertices and a table of edges, visible or not.
-- For each vertex the color is given.
-- Category: Methods to create Quadrangle
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points or if <ListEdge> contains
-- less than four edges.
raises GroupDefinitionError from Graphic3d is static;
QuadrangleSet ( me : mutable;
ListVertex : Array1OfVertexNC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
---Level: Public
---Purpose: Creates a group of quadrangles defined by a table of
-- vertices and a table of edges, visible or not.
-- For each vertex the normal and the color are given.
-- Category: Methods to create Quadrangle
-- Warning: Raises GroupDefinitionError if <ListVertex> contains
-- less than four points or if <ListEdge> contains
-- less than four edges.
raises GroupDefinitionError from Graphic3d is static;
-----------------------------------
-- Category: Methods to create Text
-----------------------------------

View File

@@ -1,100 +0,0 @@
// File Graphic3d_Group_12.cxx (Curve)
// Created Aout 1994
// Author NW,JPB,CAL
//-Copyright MatraDatavision 1994
//-Version
//-Design Declaration des variables specifiques aux groupes
// de primitives
//-Warning Un groupe est defini dans une structure
// Il s'agit de la plus petite entite editable
//-References
//-Language C++ 2.0
//-Declarations
// for the class
#include <Graphic3d_Group.jxx>
#include <Graphic3d_Group.pxx>
//-Methods, in order
void Graphic3d_Group::Bezier (const Graphic3d_Array1OfVertex& ListVertex, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
if (i <= 2)
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->Bezier (MyCGroup, ListVertex, EvalMinMax);
Update ();
}
void Graphic3d_Group::Bezier (const Graphic3d_Array1OfVertex& ListVertex, const TColStd_Array1OfReal& ListWeight, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListWeight.Length ();
if ((i <= 2) || (i != j))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->Bezier
(MyCGroup, ListVertex, ListWeight, EvalMinMax);
Update ();
}

View File

@@ -21,16 +21,9 @@
//-Declarations
// for the class
#include <Graphic3d_Group.jxx>
#include <Graphic3d_Group.pxx>
#include <Graphic3d_VertexN.hxx>
#include <Graphic3d_VertexC.hxx>
#include <Graphic3d_VertexNT.hxx>
//-Methods, in order
void Graphic3d_Group::QuadrangleMesh (const Graphic3d_Array2OfVertex& ListVertex, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
@@ -141,207 +134,3 @@ Standard_Integer UpperCol = ListVertex.UpperCol ();
Update ();
}
void Graphic3d_Group::QuadrangleSet (const Graphic3d_Array1OfVertex& ListVertex, const Aspect_Array1OfEdge& ListEdge, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
if (! MyContainsFacet) MyStructure->GroupsWithFacet (+1);
MyContainsFacet = Standard_True;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListEdge.Length ();
if ((i <= 3) || (j <= 3))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->QuadrangleSet
(MyCGroup, ListVertex, ListEdge, EvalMinMax);
Update ();
}
void Graphic3d_Group::QuadrangleSet (const Graphic3d_Array1OfVertexN& ListVertex, const Aspect_Array1OfEdge& ListEdge, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
if (! MyContainsFacet) MyStructure->GroupsWithFacet (+1);
MyContainsFacet = Standard_True;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListEdge.Length ();
if ((i <= 3) || (j <= 3))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->QuadrangleSet
(MyCGroup, ListVertex, ListEdge, EvalMinMax);
Update ();
}
void Graphic3d_Group::QuadrangleSet (const Graphic3d_Array1OfVertexC& ListVertex, const Aspect_Array1OfEdge& ListEdge, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
if (! MyContainsFacet) MyStructure->GroupsWithFacet (+1);
MyContainsFacet = Standard_True;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListEdge.Length ();
if ((i <= 3) || (j <= 3))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->QuadrangleSet
(MyCGroup, ListVertex, ListEdge, EvalMinMax);
Update ();
}
void Graphic3d_Group::QuadrangleSet (const Graphic3d_Array1OfVertexNC& ListVertex, const Aspect_Array1OfEdge& ListEdge, const Standard_Boolean EvalMinMax) {
if (IsDeleted ()) return;
if (! MyContainsFacet) MyStructure->GroupsWithFacet (+1);
MyContainsFacet = Standard_True;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListEdge.Length ();
if ((i <= 3) || (j <= 3))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->QuadrangleSet
(MyCGroup, ListVertex, ListEdge, EvalMinMax);
Update ();
}
void Graphic3d_Group::QuadrangleSet(const Graphic3d_Array1OfVertexNT& ListVertex,const Aspect_Array1OfEdge& ListEdge,const Standard_Boolean EvalMinMax)
{
if (IsDeleted ()) return;
if (! MyContainsFacet) MyStructure->GroupsWithFacet (+1);
MyContainsFacet = Standard_True;
MyIsEmpty = Standard_False;
Standard_Integer i, j;
i = ListVertex.Length ();
j = ListEdge.Length ();
if ((i <= 3) || (j <= 3))
Graphic3d_GroupDefinitionError::Raise ("Bad number of vertices");
// Min-Max Update
if (EvalMinMax) {
Standard_Real X, Y, Z;
Standard_Integer Lower = ListVertex.Lower ();
Standard_Integer Upper = ListVertex.Upper ();
// Parcours des sommets
for (j=0, i=Lower; i<=Upper; i++, j++) {
ListVertex (i).Coord (X, Y, Z);
if (X < MyBounds.XMin) MyBounds.XMin = Standard_ShortReal (X);
if (Y < MyBounds.YMin) MyBounds.YMin = Standard_ShortReal (Y);
if (Z < MyBounds.ZMin) MyBounds.ZMin = Standard_ShortReal (Z);
if (X > MyBounds.XMax) MyBounds.XMax = Standard_ShortReal (X);
if (Y > MyBounds.YMax) MyBounds.YMax = Standard_ShortReal (Y);
if (Z > MyBounds.ZMax) MyBounds.ZMax = Standard_ShortReal (Z);
}
}
MyGraphicDriver->QuadrangleSet
(MyCGroup, ListVertex, ListEdge, EvalMinMax);
Update ();
}