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

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

16
src/HLRTest/FILES Normal file
View File

@@ -0,0 +1,16 @@
HLRTest.cxx
HLRTest.hxx
HLRTest_DrawableEdgeTool.cxx
HLRTest_DrawableEdgeTool.hxx
HLRTest_DrawablePolyEdgeTool.cxx
HLRTest_DrawablePolyEdgeTool.hxx
HLRTest_DrawablePolyEdgeTool.lxx
HLRTest_OutLiner.cxx
HLRTest_OutLiner.hxx
HLRTest_OutLiner.lxx
HLRTest_Projector.cxx
HLRTest_Projector.hxx
HLRTest_Projector.lxx
HLRTest_ShapeData.cxx
HLRTest_ShapeData.hxx
HLRTest_ShapeData.lxx

View File

@@ -1,68 +0,0 @@
-- Created on: 1991-12-06
-- Created by: Remi LEQUETTE
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
package HLRTest
---Purpose: This package is a test of the Hidden Lines
-- algorithms instantiated on the BRep Data Structure
-- and using the Draw package to display the results.
uses
Standard,
MMgt,
TCollection,
gp,
TopoDS,
HLRAlgo,
HLRBRep,
HLRTopoBRep,
Draw
is
class ShapeData;
class DrawableEdgeTool;
class DrawablePolyEdgeTool;
class Projector;
class OutLiner;
---Purpose: Draw Variable Outliner to test
Set(Name : CString;
P : Projector from HLRAlgo);
---Purpose: Set a Projector Variable
GetProjector(Name : in out CString;
P : in out Projector from HLRAlgo)
returns Boolean;
---Purpose: Get a projector variable
-- Returns false if the variable is not a projector
Set(Name : CString;
S : Shape from TopoDS);
---Purpose: Set a OutLiner Variable
GetOutLiner(Name : in out CString)
returns OutLiner from HLRTopoBRep;
---Purpose: Get a outliner variable
-- Returns a null handle if the variable is not a outliner
Commands(I : in out Interpretor from Draw);
---Purpose: Defines commands to test the Hidden Line Removal
end HLRTest;

View File

@@ -14,17 +14,21 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HLRTest.ixx>
#include <HLRTest_Projector.hxx>
#include <HLRTest_OutLiner.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <gp_Ax3.hxx>
#include <Draw_Appli.hxx>
#include <Draw.hxx>
#include <DBRep.hxx>
#include <Draw.hxx>
#include <Draw_Appli.hxx>
#include <gp_Ax3.hxx>
#include <HLRAlgo_Projector.hxx>
#include <HLRAppli_ReflectLines.hxx>
#include <HLRBRep_Algo.hxx>
#include <HLRBRep_HLRToShape.hxx>
#include <HLRAppli_ReflectLines.hxx>
#include <HLRTest.hxx>
#include <HLRTest_OutLiner.hxx>
#include <HLRTest_Projector.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TopoDS_Shape.hxx>
static Handle(HLRBRep_Algo) hider;
#ifdef WNT

93
src/HLRTest/HLRTest.hxx Normal file
View File

@@ -0,0 +1,93 @@
// Created on: 1991-12-06
// Created by: Remi LEQUETTE
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_HeaderFile
#define _HLRTest_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_CString.hxx>
#include <Standard_Boolean.hxx>
#include <Draw_Interpretor.hxx>
class HLRAlgo_Projector;
class TopoDS_Shape;
class HLRTopoBRep_OutLiner;
class HLRTest_ShapeData;
class HLRTest_DrawableEdgeTool;
class HLRTest_DrawablePolyEdgeTool;
class HLRTest_Projector;
class HLRTest_OutLiner;
//! This package is a test of the Hidden Lines
//! algorithms instantiated on the BRep Data Structure
//! and using the Draw package to display the results.
class HLRTest
{
public:
DEFINE_STANDARD_ALLOC
//! Draw Variable Outliner to test
//! Set a Projector Variable
Standard_EXPORT static void Set (const Standard_CString Name, const HLRAlgo_Projector& P);
//! Get a projector variable
//! Returns false if the variable is not a projector
Standard_EXPORT static Standard_Boolean GetProjector (Standard_CString& Name, HLRAlgo_Projector& P);
//! Set a OutLiner Variable
Standard_EXPORT static void Set (const Standard_CString Name, const TopoDS_Shape& S);
//! Get a outliner variable
//! Returns a null handle if the variable is not a outliner
Standard_EXPORT static Handle(HLRTopoBRep_OutLiner) GetOutLiner (Standard_CString& Name);
//! Defines commands to test the Hidden Line Removal
Standard_EXPORT static void Commands (Draw_Interpretor& I);
protected:
private:
friend class HLRTest_ShapeData;
friend class HLRTest_DrawableEdgeTool;
friend class HLRTest_DrawablePolyEdgeTool;
friend class HLRTest_Projector;
friend class HLRTest_OutLiner;
};
#endif // _HLRTest_HeaderFile

View File

@@ -1,69 +0,0 @@
-- Created on: 1992-08-27
-- Created by: Christophe MARION
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DrawableEdgeTool from HLRTest inherits Drawable3D from Draw
---Purpose: Used to display the results.
uses
Boolean from Standard,
Integer from Standard,
Display from Draw,
Algo from HLRBRep,
Data from HLRBRep,
EdgeData from HLRBRep
is
Create(Alg : Algo from HLRBRep;
Visible : Boolean from Standard;
IsoLine : Boolean from Standard;
Rg1Line : Boolean from Standard;
RgNLine : Boolean from Standard;
ViewId : Integer from Standard)
returns DrawableEdgeTool from HLRTest;
DrawOn(me; D : in out Display from Draw);
InternalDraw(me; D :in out Display from Draw;
typ : Integer from Standard)
is static private;
DrawFace(me; D : in out Display from Draw;
typ : Integer from Standard;
nCB : Integer from Standard;
iface : Integer from Standard;
e2,iCB : in out Integer from Standard;
DS : in out Data from HLRBRep)
is static private;
DrawEdge(me; D : in out Display from Draw;
inFace : Boolean from Standard;
typ : Integer from Standard;
nCB : Integer from Standard;
ie : Integer from Standard;
e2,iCB : in out Integer from Standard;
ed : in out EdgeData from HLRBRep)
is static private;
fields
myAlgo : Algo from HLRBRep;
myVisible : Boolean from Standard;
myIsoLine : Boolean from Standard;
myRg1Line : Boolean from Standard;
myRgNLine : Boolean from Standard;
myViewId : Integer from Standard;
end DrawableEdgeTool;

View File

@@ -14,17 +14,21 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HLRTest_DrawableEdgeTool.ixx>
#include <HLRTest_ShapeData.hxx>
#include <HLRBRep_Data.hxx>
#include <Draw_Display.hxx>
#include <HLRAlgo_EdgeIterator.hxx>
#include <HLRBRep_Algo.hxx>
#include <HLRBRep_Data.hxx>
#include <HLRBRep_EdgeData.hxx>
#include <HLRBRep_ShapeBounds.hxx>
#include <HLRTest_DrawableEdgeTool.hxx>
#include <HLRTest_ShapeData.hxx>
#include <Standard_Type.hxx>
//=======================================================================
//function : HLRTest_DrawableEdgeTool
//purpose :
//=======================================================================
HLRTest_DrawableEdgeTool::HLRTest_DrawableEdgeTool
(const Handle(HLRBRep_Algo)& Alg,
const Standard_Boolean Visible,

View File

@@ -0,0 +1,81 @@
// Created on: 1992-08-27
// Created by: Christophe MARION
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_DrawableEdgeTool_HeaderFile
#define _HLRTest_DrawableEdgeTool_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Draw_Drawable3D.hxx>
class HLRBRep_Algo;
class Draw_Display;
class HLRBRep_Data;
class HLRBRep_EdgeData;
class HLRTest_DrawableEdgeTool;
DEFINE_STANDARD_HANDLE(HLRTest_DrawableEdgeTool, Draw_Drawable3D)
//! Used to display the results.
class HLRTest_DrawableEdgeTool : public Draw_Drawable3D
{
public:
Standard_EXPORT HLRTest_DrawableEdgeTool(const Handle(HLRBRep_Algo)& Alg, const Standard_Boolean Visible, const Standard_Boolean IsoLine, const Standard_Boolean Rg1Line, const Standard_Boolean RgNLine, const Standard_Integer ViewId);
Standard_EXPORT void DrawOn (Draw_Display& D) const;
DEFINE_STANDARD_RTTI(HLRTest_DrawableEdgeTool,Draw_Drawable3D)
protected:
private:
Standard_EXPORT void InternalDraw (Draw_Display& D, const Standard_Integer typ) const;
Standard_EXPORT void DrawFace (Draw_Display& D, const Standard_Integer typ, const Standard_Integer nCB, const Standard_Integer iface, Standard_Integer& e2, Standard_Integer& iCB, Handle(HLRBRep_Data)& DS) const;
Standard_EXPORT void DrawEdge (Draw_Display& D, const Standard_Boolean inFace, const Standard_Integer typ, const Standard_Integer nCB, const Standard_Integer ie, Standard_Integer& e2, Standard_Integer& iCB, HLRBRep_EdgeData& ed) const;
Handle(HLRBRep_Algo) myAlgo;
Standard_Boolean myVisible;
Standard_Boolean myIsoLine;
Standard_Boolean myRg1Line;
Standard_Boolean myRgNLine;
Standard_Integer myViewId;
};
#endif // _HLRTest_DrawableEdgeTool_HeaderFile

View File

@@ -1,87 +0,0 @@
-- Created on: 1992-08-27
-- Created by: Christophe MARION
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DrawablePolyEdgeTool from HLRTest inherits Drawable3D from Draw
---Purpose: Used to display the results.
uses
Boolean from Standard,
Integer from Standard,
Display from Draw,
PolyAlgo from HLRBRep,
ListOfBPoint from HLRBRep
is
Create(Alg : PolyAlgo from HLRBRep;
ViewId : Integer from Standard;
Debug : Boolean from Standard = Standard_False)
returns DrawablePolyEdgeTool from HLRTest;
Show(me : mutable)
---C++: inline
is static;
Hide(me : mutable)
---C++: inline
is static;
DisplayRg1Line(me : mutable; B : Boolean from Standard)
---C++: inline
is static;
DisplayRg1Line(me) returns Boolean from Standard
---C++: inline
is static;
DisplayRgNLine(me : mutable; B : Boolean from Standard)
---C++: inline
is static;
DisplayRgNLine(me) returns Boolean from Standard
---C++: inline
is static;
DisplayHidden(me : mutable; B : Boolean from Standard)
---C++: inline
is static;
DisplayHidden(me) returns Boolean from Standard
---C++: inline
is static;
DrawOn(me; D : in out Display from Draw);
Debug(me) returns Boolean from Standard
---C++: inline
is static;
Debug(me : mutable; B : Boolean from Standard)
---C++: inline
is static;
fields
myAlgo : PolyAlgo from HLRBRep;
myDispRg1 : Boolean from Standard;
myDispRgN : Boolean from Standard;
myDispHid : Boolean from Standard;
myViewId : Integer from Standard;
myBiPntVis : ListOfBPoint from HLRBRep;
myBiPntHid : ListOfBPoint from HLRBRep;
myDebug : Boolean from Standard;
myHideMode : Boolean from Standard;
end DrawablePolyEdgeTool;

View File

@@ -16,13 +16,16 @@
// Modified by cma, Mon Oct 23 16:11:46 1995
#include <HLRTest_DrawablePolyEdgeTool.ixx>
#include <Draw_Color.hxx>
#include <Draw_Display.hxx>
#include <HLRAlgo_EdgeIterator.hxx>
#include <HLRAlgo_EdgeStatus.hxx>
#include <HLRBRep_BiPoint.hxx>
#include <HLRBRep_ListIteratorOfListOfBPoint.hxx>
#include <HLRAlgo_EdgeStatus.hxx>
#include <HLRAlgo_EdgeIterator.hxx>
#include <Draw_Color.hxx>
#include <HLRBRep_PolyAlgo.hxx>
#include <HLRTest_DrawablePolyEdgeTool.hxx>
#include <OSD_Chronometer.hxx>
#include <Standard_Type.hxx>
#define PntX1 ((Standard_Real*)Coordinates)[0]
#define PntY1 ((Standard_Real*)Coordinates)[1]

View File

@@ -0,0 +1,98 @@
// Created on: 1992-08-27
// Created by: Christophe MARION
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_DrawablePolyEdgeTool_HeaderFile
#define _HLRTest_DrawablePolyEdgeTool_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <HLRBRep_ListOfBPoint.hxx>
#include <Draw_Drawable3D.hxx>
class HLRBRep_PolyAlgo;
class Draw_Display;
class HLRTest_DrawablePolyEdgeTool;
DEFINE_STANDARD_HANDLE(HLRTest_DrawablePolyEdgeTool, Draw_Drawable3D)
//! Used to display the results.
class HLRTest_DrawablePolyEdgeTool : public Draw_Drawable3D
{
public:
Standard_EXPORT HLRTest_DrawablePolyEdgeTool(const Handle(HLRBRep_PolyAlgo)& Alg, const Standard_Integer ViewId, const Standard_Boolean Debug = Standard_False);
void Show();
void Hide();
void DisplayRg1Line (const Standard_Boolean B);
Standard_Boolean DisplayRg1Line() const;
void DisplayRgNLine (const Standard_Boolean B);
Standard_Boolean DisplayRgNLine() const;
void DisplayHidden (const Standard_Boolean B);
Standard_Boolean DisplayHidden() const;
Standard_EXPORT void DrawOn (Draw_Display& D) const;
Standard_Boolean Debug() const;
void Debug (const Standard_Boolean B);
DEFINE_STANDARD_RTTI(HLRTest_DrawablePolyEdgeTool,Draw_Drawable3D)
protected:
private:
Handle(HLRBRep_PolyAlgo) myAlgo;
Standard_Boolean myDispRg1;
Standard_Boolean myDispRgN;
Standard_Boolean myDispHid;
Standard_Integer myViewId;
HLRBRep_ListOfBPoint myBiPntVis;
HLRBRep_ListOfBPoint myBiPntHid;
Standard_Boolean myDebug;
Standard_Boolean myHideMode;
};
#include <HLRTest_DrawablePolyEdgeTool.lxx>
#endif // _HLRTest_DrawablePolyEdgeTool_HeaderFile

View File

@@ -1,53 +0,0 @@
-- Created on: 1995-04-05
-- Created by: Christophe MARION
-- Copyright (c) 1995-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class OutLiner from HLRTest inherits Drawable3D from Draw
---Purpose:
uses
OStream,
Display from Draw,
Interpretor from Draw,
OutLiner from HLRTopoBRep,
Shape from TopoDS
is
Create(S : Shape from TopoDS)
returns OutLiner from HLRTest;
OutLiner(me) returns OutLiner from HLRTopoBRep;
---C++: inline
DrawOn(me; dis : in out Display from Draw);
---Purpose: Does nothhing,
Copy(me) returns Drawable3D from Draw
---Purpose: For variable copy.
is redefined;
Dump(me; S : in out OStream)
---Purpose: For variable dump.
is redefined;
Whatis(me; I : in out Interpretor from Draw)
---Purpose: For variable whatis command. Set as a result the
-- type of the variable.
is redefined;
fields
myOutLiner : OutLiner from HLRTopoBRep;
end OutLiner;

View File

@@ -14,13 +14,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HLRTest_OutLiner.ixx>
#include <Draw_Display.hxx>
#include <Draw_Drawable3D.hxx>
#include <HLRTest_OutLiner.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
#include <Standard_Type.hxx>
#include <TopoDS_Shape.hxx>
//=======================================================================
//function : HLRTest_OutLiner
//purpose :
//=======================================================================
HLRTest_OutLiner::HLRTest_OutLiner (const TopoDS_Shape& S)
{
myOutLiner = new HLRTopoBRep_OutLiner(S);

View File

@@ -0,0 +1,84 @@
// Created on: 1995-04-05
// Created by: Christophe MARION
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_OutLiner_HeaderFile
#define _HLRTest_OutLiner_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Draw_Drawable3D.hxx>
#include <Standard_OStream.hxx>
#include <Draw_Interpretor.hxx>
class HLRTopoBRep_OutLiner;
class TopoDS_Shape;
class Draw_Display;
class Draw_Drawable3D;
class HLRTest_OutLiner;
DEFINE_STANDARD_HANDLE(HLRTest_OutLiner, Draw_Drawable3D)
class HLRTest_OutLiner : public Draw_Drawable3D
{
public:
Standard_EXPORT HLRTest_OutLiner(const TopoDS_Shape& S);
Handle(HLRTopoBRep_OutLiner) OutLiner() const;
//! Does nothhing,
Standard_EXPORT void DrawOn (Draw_Display& dis) const;
//! For variable copy.
Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
//! For variable dump.
Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
//! For variable whatis command. Set as a result the
//! type of the variable.
Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(HLRTest_OutLiner,Draw_Drawable3D)
protected:
private:
Handle(HLRTopoBRep_OutLiner) myOutLiner;
};
#include <HLRTest_OutLiner.lxx>
#endif // _HLRTest_OutLiner_HeaderFile

View File

@@ -1,53 +0,0 @@
-- Created on: 1995-04-05
-- Created by: Christophe MARION
-- Copyright (c) 1995-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Projector from HLRTest inherits Drawable3D from Draw
---Purpose: Draw Variable Projector to test.
uses
OStream,
Display from Draw,
Interpretor from Draw,
Projector from HLRAlgo
is
Create(P : Projector from HLRAlgo)
returns Projector from HLRTest;
Projector(me) returns Projector from HLRAlgo;
---C++: return const &
---C++: inline
DrawOn(me; dis : in out Display from Draw);
---Purpose: Does nothhing,
Copy(me) returns Drawable3D from Draw
---Purpose: For variable copy.
is redefined;
Dump(me; S : in out OStream)
---Purpose: For variable dump.
is redefined;
Whatis(me; I : in out Interpretor from Draw)
---Purpose: For variable whatis command. Set as a result the
-- type of the variable.
is redefined;
fields
myProjector : Projector from HLRAlgo;
end Projector;

View File

@@ -14,14 +14,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Draw_Display.hxx>
#include <Draw_Drawable3D.hxx>
#include <HLRAlgo_Projector.hxx>
#include <HLRTest_Projector.hxx>
#include <Standard_Stream.hxx>
#include <HLRTest_Projector.ixx>
#include <Standard_Type.hxx>
//=======================================================================
//function : HLRTest_Projector
//purpose :
//=======================================================================
HLRTest_Projector::HLRTest_Projector (const HLRAlgo_Projector& P) :
myProjector(P)
{

View File

@@ -0,0 +1,84 @@
// Created on: 1995-04-05
// Created by: Christophe MARION
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_Projector_HeaderFile
#define _HLRTest_Projector_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <HLRAlgo_Projector.hxx>
#include <Draw_Drawable3D.hxx>
#include <Standard_OStream.hxx>
#include <Draw_Interpretor.hxx>
class HLRAlgo_Projector;
class Draw_Display;
class Draw_Drawable3D;
class HLRTest_Projector;
DEFINE_STANDARD_HANDLE(HLRTest_Projector, Draw_Drawable3D)
//! Draw Variable Projector to test.
class HLRTest_Projector : public Draw_Drawable3D
{
public:
Standard_EXPORT HLRTest_Projector(const HLRAlgo_Projector& P);
const HLRAlgo_Projector& Projector() const;
//! Does nothhing,
Standard_EXPORT void DrawOn (Draw_Display& dis) const;
//! For variable copy.
Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
//! For variable dump.
Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
//! For variable whatis command. Set as a result the
//! type of the variable.
Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(HLRTest_Projector,Draw_Drawable3D)
protected:
private:
HLRAlgo_Projector myProjector;
};
#include <HLRTest_Projector.lxx>
#endif // _HLRTest_Projector_HeaderFile

View File

@@ -1,84 +0,0 @@
-- Created on: 1992-08-21
-- Created by: Christophe MARION
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class ShapeData from HLRTest inherits TShared from MMgt
---Purpose: Contains the colors of a shape.
uses
Color from Draw
is
Create(CVis,COVis,CIVis,CHid,COHid,CIHid : Color from Draw)
returns ShapeData from HLRTest;
VisibleColor(me: mutable; CVis : Color from Draw)
---C++: inline
is static;
VisibleOutLineColor(me: mutable; COVis : Color from Draw)
---C++: inline
is static;
VisibleIsoColor(me: mutable; CIVis : Color from Draw)
---C++: inline
is static;
HiddenColor(me: mutable; CHid : Color from Draw)
---C++: inline
is static;
HiddenOutLineColor(me: mutable; COHid : Color from Draw)
---C++: inline
is static;
HiddenIsoColor(me: mutable; CIHid : Color from Draw)
---C++: inline
is static;
VisibleColor(me) returns Color from Draw
---C++: inline
is static;
VisibleOutLineColor(me) returns Color from Draw
---C++: inline
is static;
VisibleIsoColor(me) returns Color from Draw
---C++: inline
is static;
HiddenColor(me) returns Color from Draw
---C++: inline
is static;
HiddenOutLineColor(me) returns Color from Draw
---C++: inline
is static;
HiddenIsoColor(me) returns Color from Draw
---C++: inline
is static;
fields
myVColor : Color from Draw;
myVOColor : Color from Draw;
myVIColor : Color from Draw;
myHColor : Color from Draw;
myHOColor : Color from Draw;
myHIColor : Color from Draw;
end ShapeData;

View File

@@ -14,13 +14,15 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HLRTest_ShapeData.ixx>
#include <Draw_Color.hxx>
#include <HLRTest_ShapeData.hxx>
#include <Standard_Type.hxx>
//=======================================================================
//function : HLRTest_ShapeData
//purpose :
//=======================================================================
HLRTest_ShapeData::HLRTest_ShapeData
(const Draw_Color& CVis,
const Draw_Color& COVis,

View File

@@ -0,0 +1,94 @@
// Created on: 1992-08-21
// Created by: Christophe MARION
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _HLRTest_ShapeData_HeaderFile
#define _HLRTest_ShapeData_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Draw_Color.hxx>
#include <MMgt_TShared.hxx>
class Draw_Color;
class HLRTest_ShapeData;
DEFINE_STANDARD_HANDLE(HLRTest_ShapeData, MMgt_TShared)
//! Contains the colors of a shape.
class HLRTest_ShapeData : public MMgt_TShared
{
public:
Standard_EXPORT HLRTest_ShapeData(const Draw_Color& CVis, const Draw_Color& COVis, const Draw_Color& CIVis, const Draw_Color& CHid, const Draw_Color& COHid, const Draw_Color& CIHid);
void VisibleColor (const Draw_Color& CVis);
void VisibleOutLineColor (const Draw_Color& COVis);
void VisibleIsoColor (const Draw_Color& CIVis);
void HiddenColor (const Draw_Color& CHid);
void HiddenOutLineColor (const Draw_Color& COHid);
void HiddenIsoColor (const Draw_Color& CIHid);
Draw_Color VisibleColor() const;
Draw_Color VisibleOutLineColor() const;
Draw_Color VisibleIsoColor() const;
Draw_Color HiddenColor() const;
Draw_Color HiddenOutLineColor() const;
Draw_Color HiddenIsoColor() const;
DEFINE_STANDARD_RTTI(HLRTest_ShapeData,MMgt_TShared)
protected:
private:
Draw_Color myVColor;
Draw_Color myVOColor;
Draw_Color myVIColor;
Draw_Color myHColor;
Draw_Color myHOColor;
Draw_Color myHIColor;
};
#include <HLRTest_ShapeData.lxx>
#endif // _HLRTest_ShapeData_HeaderFile