mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Standard_IMPORT removed or replaced by 'export' where it applies to a symbol defined in the same toolkit
131 lines
4.3 KiB
C++
Executable File
131 lines
4.3 KiB
C++
Executable File
// Created on: 1994-10-24
|
|
// Created by: Jean Yves LEBEY
|
|
// Copyright (c) 1994-1999 Matra Datavision
|
|
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
//
|
|
// The content of this file is subject to the Open CASCADE Technology Public
|
|
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
// except in compliance with the License. Please obtain a copy of the License
|
|
// at http://www.opencascade.org and read it completely before using this file.
|
|
//
|
|
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
//
|
|
// The Original Code and all software distributed under the License is
|
|
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
// Initial Developer hereby disclaims all such warranties, including without
|
|
// limitation, any warranties of merchantability, fitness for a particular
|
|
// purpose or non-infringement. Please see the License for the specific terms
|
|
// and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
#include <TestTopOpe.ixx>
|
|
#include <TestTopOpeTools.hxx>
|
|
#include <TestTopOpeDraw.hxx>
|
|
#include <TestTopOpe_HDSDisplayer.hxx>
|
|
#include <TestTopOpe_BOOP.hxx>
|
|
#include <TopOpeBRepDS_DSX.hxx>
|
|
#include <TopOpeBRepDS_Dumper.hxx>
|
|
#include <Draw_Interpretor.hxx>
|
|
#include <Draw_PluginMacro.hxx>
|
|
#include <BOPTest.hxx>
|
|
#ifdef WNT
|
|
#pragma warning(4:4190)
|
|
#endif
|
|
|
|
//=======================================================================
|
|
//function : AllCommands
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void TestTopOpe::AllCommands(Draw_Interpretor& theCommands)
|
|
{
|
|
static Standard_Boolean done = Standard_False;
|
|
if (done) return;
|
|
|
|
done = Standard_True;
|
|
|
|
TestTopOpe::BOOPCommands(theCommands);
|
|
TestTopOpe::HDSCommands(theCommands);
|
|
TestTopOpe::MesureCommands(theCommands);
|
|
TestTopOpe::CORCommands(theCommands);
|
|
TestTopOpe::DSACommands(theCommands);
|
|
TestTopOpe::OtherCommands(theCommands);
|
|
TestTopOpeTools::AllCommands(theCommands);
|
|
TestTopOpeDraw::AllCommands(theCommands);
|
|
}
|
|
|
|
extern TestTopOpe_HDSDisplayer* PHDSD;
|
|
extern TestTopOpe_BOOP* PBOOP;
|
|
|
|
//=======================================================================
|
|
//function : Shapes
|
|
//purpose :
|
|
//=======================================================================
|
|
void TestTopOpe::Shapes(const TopoDS_Shape& S1,const TopoDS_Shape& S2)
|
|
{
|
|
if (PHDSD != NULL) { PHDSD->SetShape1(S1);PHDSD->SetShape2(S2); }
|
|
if (PBOOP != NULL) { PBOOP->SetShape1(S1);PBOOP->SetShape2(S2); }
|
|
#ifdef DEB
|
|
TopOpeBRepDS_SettraceSPSX_SS(S1,S2);
|
|
#endif
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : CurrentHDS
|
|
//purpose :
|
|
//=======================================================================
|
|
void TestTopOpe::CurrentDS(const Handle(TopOpeBRepDS_HDataStructure)& HDS)
|
|
{
|
|
if (PHDSD != NULL) { PHDSD->SetCurrentHDS(HDS); }
|
|
if (PBOOP != NULL) { PBOOP->SetCurrentHDS(HDS); }
|
|
#ifdef DEB
|
|
TopOpeBRepDS_SettraceSPSX_HDS(HDS);
|
|
#endif
|
|
}
|
|
|
|
#ifdef DEB
|
|
Standard_EXPORT void debloi(const TopOpeBRepDS_ListOfInterference& L)
|
|
{
|
|
if (PBOOP == NULL) return;
|
|
TopOpeBRepDS_Dumper DSD(PBOOP->ChangeCurrentDS());
|
|
DSD.DumpLOI(L,cout,"");
|
|
}
|
|
Standard_EXPORT void debi(const Handle(TopOpeBRepDS_Interference)& I)
|
|
{
|
|
if (PBOOP == NULL) return;
|
|
TopOpeBRepDS_Dumper DSD(PBOOP->ChangeCurrentDS());
|
|
DSD.DumpI(I,cout,"","\n");
|
|
}
|
|
#endif
|
|
|
|
//=======================================================================
|
|
//function : CurrentHB
|
|
//purpose :
|
|
//=======================================================================
|
|
void TestTopOpe::CurrentHB(const Handle(TopOpeBRepBuild_HBuilder)& HB)
|
|
{
|
|
if (PBOOP != NULL) { PBOOP->SetCurrentHB(HB); }
|
|
}
|
|
|
|
//==============================================================================
|
|
// TestTopOpe::Factory
|
|
//==============================================================================
|
|
void TestTopOpe::Factory(Draw_Interpretor& theDI)
|
|
{
|
|
static Standard_Boolean FactoryDone = Standard_False;
|
|
if (FactoryDone) return;
|
|
|
|
FactoryDone = Standard_True;
|
|
|
|
TestTopOpe::AllCommands(theDI);
|
|
|
|
BOPTest::Factory(theDI);
|
|
|
|
#ifdef DEB
|
|
cout << "Draw Plugin : All topological operations kernel commands are loaded" << endl;
|
|
#endif
|
|
}
|
|
// Declare entry point PLUGINFACTORY
|
|
DPLUGIN(TestTopOpe)
|