mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -1,18 +1,20 @@
|
||||
EXTERNLIB
|
||||
ViewerTest_CMPLRS.edl
|
||||
ViewerTest_AutoUpdater.hxx
|
||||
ViewerTest_AutoUpdater.cxx
|
||||
ViewerTest_AviCommands.cxx
|
||||
ViewerTest_ViewerCommands.cxx
|
||||
ViewerTest_RelationCommands.cxx
|
||||
ViewerTest_ObjectCommands.cxx
|
||||
ViewerTest_FilletCommands.cxx
|
||||
ViewerTest_VoxelCommands.cxx
|
||||
ViewerTest_OpenGlCommands.cxx
|
||||
ViewerTest_ViewerCommands_1.mm
|
||||
ViewerTest.hxx
|
||||
ViewerTest.cxx
|
||||
ViewerTest_CmdParser.hxx
|
||||
ViewerTest.hxx
|
||||
ViewerTest_AutoUpdater.cxx
|
||||
ViewerTest_AutoUpdater.hxx
|
||||
ViewerTest_AviCommands.cxx
|
||||
ViewerTest_CmdParser.cxx
|
||||
ViewerTest_DoubleMapOfInteractiveAndName.hxx
|
||||
ViewerTest_CmdParser.hxx
|
||||
ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName.hxx
|
||||
ViewerTest_DoubleMapOfInteractiveAndName.hxx
|
||||
ViewerTest_EventManager.cxx
|
||||
ViewerTest_EventManager.hxx
|
||||
ViewerTest_EventManager.lxx
|
||||
ViewerTest_FilletCommands.cxx
|
||||
ViewerTest_ObjectCommands.cxx
|
||||
ViewerTest_OpenGlCommands.cxx
|
||||
ViewerTest_RelationCommands.cxx
|
||||
ViewerTest_ViewerCommands.cxx
|
||||
ViewerTest_ViewerCommands_1.mm
|
||||
ViewerTest_VoxelCommands.cxx
|
||||
|
@@ -1,42 +0,0 @@
|
||||
-- Created on: 1997-07-23
|
||||
-- Created by: Henri JEANNIN
|
||||
-- Copyright (c) 1997-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 ViewerTest
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
Draw,
|
||||
TCollection,
|
||||
TColStd,
|
||||
TColgp,
|
||||
TopAbs,
|
||||
TopTools,
|
||||
TopoDS,
|
||||
V3d,
|
||||
AIS,
|
||||
MMgt,
|
||||
Quantity
|
||||
|
||||
is
|
||||
|
||||
class EventManager;
|
||||
|
||||
imported DoubleMapOfInteractiveAndName;
|
||||
|
||||
imported DoubleMapIteratorOfDoubleMapOfInteractiveAndName;
|
||||
|
||||
end;
|
@@ -1,22 +0,0 @@
|
||||
-- Copyright (c) 1997-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.
|
||||
|
||||
@ifnotdefined ( %ViewerTest_CMPLRS ) then
|
||||
@set %ViewerTest_CMPLRS = "";
|
||||
|
||||
@uses "CSF.edl" ;
|
||||
|
||||
@string %CMPLRS_CXX_Options += " " %CSF_TCL_INCLUDE;
|
||||
|
||||
@endif;
|
@@ -1,72 +0,0 @@
|
||||
-- Created on: 1998-08-27
|
||||
-- Created by: Robert COUBLANC
|
||||
-- Copyright (c) 1998-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 EventManager from ViewerTest inherits TShared from MMgt
|
||||
|
||||
---Purpose: used to manage mouse event (move,select,shiftselect)
|
||||
-- By default the events are transmitted to interactive context.
|
||||
|
||||
|
||||
uses
|
||||
View from V3d,
|
||||
InteractiveContext from AIS,
|
||||
Array1OfPnt2d from TColgp
|
||||
is
|
||||
|
||||
Create (aView: View from V3d;
|
||||
aCtx :InteractiveContext from AIS)
|
||||
returns EventManager from ViewerTest;
|
||||
|
||||
MoveTo (me:mutable;
|
||||
xpix, ypix : Integer from Standard) is virtual;
|
||||
|
||||
Select(me:mutable) is virtual;
|
||||
|
||||
ShiftSelect(me:mutable) is virtual;
|
||||
|
||||
Select (me : mutable;
|
||||
theXPressed : Integer;
|
||||
theYPressed : Integer;
|
||||
theXMotion : Integer;
|
||||
theYMotion : Integer;
|
||||
theIsAutoAllowOverlap : Boolean from Standard = Standard_True) is virtual;
|
||||
|
||||
ShiftSelect (me : mutable;
|
||||
theXPressed : Integer;
|
||||
theYPressed : Integer;
|
||||
theXMotion : Integer;
|
||||
theYMotion : Integer;
|
||||
theIsAutoAllowOverlap : Boolean from Standard = Standard_True) is virtual;
|
||||
|
||||
Select(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
|
||||
|
||||
ShiftSelect(me:mutable;thePolyline:Array1OfPnt2d from TColgp) is virtual;
|
||||
|
||||
Context(me) returns InteractiveContext from AIS;
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
GetCurrentPosition (me; theXPix, theYPix: out Integer from Standard);
|
||||
---Purpose: Gets current mouse position. It tracks change of mouse position
|
||||
-- with mouse drugging or with DRAW command call (vmoveto).
|
||||
fields
|
||||
|
||||
myCtx : InteractiveContext from AIS;
|
||||
myView: View from V3d;
|
||||
myX : Integer from Standard;
|
||||
myY : Integer from Standard;
|
||||
|
||||
end EventManager;
|
@@ -14,16 +14,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <ViewerTest_EventManager.ixx>
|
||||
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <Aspect_Grid.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <V3d_View.hxx>
|
||||
#include <ViewerTest_EventManager.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : ViewerTest_EventManager
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
ViewerTest_EventManager::ViewerTest_EventManager (const Handle(V3d_View)& theView,
|
||||
const Handle(AIS_InteractiveContext)& theCtx)
|
||||
: myCtx (theCtx),
|
||||
|
92
src/ViewerTest/ViewerTest_EventManager.hxx
Normal file
92
src/ViewerTest/ViewerTest_EventManager.hxx
Normal file
@@ -0,0 +1,92 @@
|
||||
// Created on: 1998-08-27
|
||||
// Created by: Robert COUBLANC
|
||||
// Copyright (c) 1998-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 _ViewerTest_EventManager_HeaderFile
|
||||
#define _ViewerTest_EventManager_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
class AIS_InteractiveContext;
|
||||
class V3d_View;
|
||||
|
||||
|
||||
class ViewerTest_EventManager;
|
||||
DEFINE_STANDARD_HANDLE(ViewerTest_EventManager, MMgt_TShared)
|
||||
|
||||
//! used to manage mouse event (move,select,shiftselect)
|
||||
//! By default the events are transmitted to interactive context.
|
||||
class ViewerTest_EventManager : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT ViewerTest_EventManager(const Handle(V3d_View)& aView, const Handle(AIS_InteractiveContext)& aCtx);
|
||||
|
||||
Standard_EXPORT virtual void MoveTo (const Standard_Integer xpix, const Standard_Integer ypix);
|
||||
|
||||
Standard_EXPORT virtual void Select();
|
||||
|
||||
Standard_EXPORT virtual void ShiftSelect();
|
||||
|
||||
Standard_EXPORT virtual void Select (const Standard_Integer theXPressed, const Standard_Integer theYPressed, const Standard_Integer theXMotion, const Standard_Integer theYMotion, const Standard_Boolean theIsAutoAllowOverlap = Standard_True);
|
||||
|
||||
Standard_EXPORT virtual void ShiftSelect (const Standard_Integer theXPressed, const Standard_Integer theYPressed, const Standard_Integer theXMotion, const Standard_Integer theYMotion, const Standard_Boolean theIsAutoAllowOverlap = Standard_True);
|
||||
|
||||
Standard_EXPORT virtual void Select (const TColgp_Array1OfPnt2d& thePolyline);
|
||||
|
||||
Standard_EXPORT virtual void ShiftSelect (const TColgp_Array1OfPnt2d& thePolyline);
|
||||
|
||||
const Handle(AIS_InteractiveContext)& Context() const;
|
||||
|
||||
//! Gets current mouse position. It tracks change of mouse position
|
||||
//! with mouse drugging or with DRAW command call (vmoveto).
|
||||
Standard_EXPORT void GetCurrentPosition (Standard_Integer& theXPix, Standard_Integer& theYPix) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(ViewerTest_EventManager,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(AIS_InteractiveContext) myCtx;
|
||||
Handle(V3d_View) myView;
|
||||
Standard_Integer myX;
|
||||
Standard_Integer myY;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include <ViewerTest_EventManager.lxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _ViewerTest_EventManager_HeaderFile
|
Reference in New Issue
Block a user