mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
154 lines
7.2 KiB
C++
Executable File
154 lines
7.2 KiB
C++
Executable File
// File generated by CPPExt (Value)
|
|
// Copyright (C) 1991,1995 by
|
|
//
|
|
// MATRA DATAVISION, FRANCE
|
|
//
|
|
// This software is furnished in accordance with the terms and conditions
|
|
// of the contract and with the inclusion of the above copyright notice.
|
|
// This software or any other copy thereof may not be provided or otherwise
|
|
// be made available to any other person. No title to an ownership of the
|
|
// software is hereby transferred.
|
|
//
|
|
// At the termination of the contract, the software and all copies of this
|
|
// software must be deleted.
|
|
|
|
#ifndef _SampleViewer3DPackage_HeaderFile
|
|
#define _SampleViewer3DPackage_HeaderFile
|
|
|
|
#ifndef _Handle_V3d_Viewer_HeaderFile
|
|
#include <Handle_V3d_Viewer.hxx>
|
|
#endif
|
|
#ifndef _Standard_ExtString_HeaderFile
|
|
#include <Standard_ExtString.hxx>
|
|
#endif
|
|
#ifndef _Handle_V3d_View_HeaderFile
|
|
#include <Handle_V3d_View.hxx>
|
|
#endif
|
|
#ifndef _Standard_Integer_HeaderFile
|
|
#include <Standard_Integer.hxx>
|
|
#endif
|
|
#ifndef _Handle_Graphic3d_GraphicDriver_HeaderFile
|
|
#include <Handle_Graphic3d_GraphicDriver.hxx>
|
|
#endif
|
|
#ifndef _Handle_AIS_InteractiveContext_HeaderFile
|
|
#include <Handle_AIS_InteractiveContext.hxx>
|
|
#endif
|
|
#ifndef _Quantity_Length_HeaderFile
|
|
#include <Quantity_Length.hxx>
|
|
#endif
|
|
#ifndef _V3d_TypeOfZclipping_HeaderFile
|
|
#include <V3d_TypeOfZclipping.hxx>
|
|
#endif
|
|
#ifndef _Standard_Boolean_HeaderFile
|
|
#include <Standard_Boolean.hxx>
|
|
#endif
|
|
#ifndef _V3d_TypeOfShadingModel_HeaderFile
|
|
#include <V3d_TypeOfShadingModel.hxx>
|
|
#endif
|
|
#ifndef _Standard_Real_HeaderFile
|
|
#include <Standard_Real.hxx>
|
|
#endif
|
|
class V3d_Viewer;
|
|
class V3d_View;
|
|
class Graphic3d_GraphicDriver;
|
|
class AIS_InteractiveContext;
|
|
class TCollection_AsciiString;
|
|
|
|
|
|
#ifndef _Standard_HeaderFile
|
|
#include <Standard.hxx>
|
|
#endif
|
|
#ifndef _Standard_Macro_HeaderFile
|
|
#include <Standard_Macro.hxx>
|
|
#endif
|
|
|
|
class SampleViewer3DPackage {
|
|
|
|
public:
|
|
|
|
void* operator new(size_t,void* anAddress)
|
|
{
|
|
return anAddress;
|
|
}
|
|
void* operator new(size_t size)
|
|
{
|
|
return Standard::Allocate(size);
|
|
}
|
|
void operator delete(void *anAddress)
|
|
{
|
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
|
}
|
|
// Methods PUBLIC
|
|
//
|
|
Standard_EXPORT static Handle_V3d_Viewer CreateViewer(const Standard_ExtString aName) ;
|
|
Standard_EXPORT static void SetWindow(const Handle(V3d_View)& aView,const Standard_Integer hiwin,const Standard_Integer lowin) ;
|
|
Standard_EXPORT static Handle_Graphic3d_GraphicDriver CreateGraphicDriver() ;
|
|
Standard_EXPORT static void DisplayBox(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void DisplayCylinder(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void DisplaySphere(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void EraseAll(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void CreateSpotLight(const Handle(AIS_InteractiveContext)& aContext,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void SetSpotLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void DirectingSpotLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y) ;
|
|
Standard_EXPORT static void DirectSpotLight(const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ExpandingSpotLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y) ;
|
|
Standard_EXPORT static void ExpandSpotLight(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void CreatePositionalLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void DirectingPositionalLight(const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y) ;
|
|
Standard_EXPORT static void DirectPositionalLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void CreateDirectionalLight(const Handle(AIS_InteractiveContext)& aContext,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void SetDirectionalLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void DirectingDirectionalLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Integer X,const Standard_Integer Y) ;
|
|
Standard_EXPORT static void DirectDirectionalLight(const Handle(AIS_InteractiveContext)& aContext) ;
|
|
Standard_EXPORT static void CreateAmbientLight(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ClearLights(const Handle(V3d_View)& aView,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZClippingDepth(const Handle(V3d_View)& aView,const Quantity_Length Depth,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZClippingWidth(const Handle(V3d_View)& aView,const Quantity_Length Width,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZClippingType(const Handle(V3d_View)& aView,const V3d_TypeOfZclipping Type,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZCueingDepth(const Handle(V3d_View)& aView,const Quantity_Length Depth,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZCueingWidth(const Handle(V3d_View)& aView,const Quantity_Length Width,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeZCueingOnOff(const Handle(V3d_View)& aView,const Standard_Boolean IsOn,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeShadingModel(const Handle(V3d_View)& aView,const V3d_TypeOfShadingModel Model) ;
|
|
Standard_EXPORT static void ChangeAntialiasing(const Handle(V3d_View)& aView,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void CreateClippingPlane(const Handle(V3d_Viewer)& aViewer) ;
|
|
Standard_EXPORT static void DisplayClippingPlane(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,Standard_Real& Z,Standard_Boolean& IsOn) ;
|
|
Standard_EXPORT static void ChangeModelClippingZ(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Real Z,const Standard_Boolean IsOn,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ChangeModelClippingOnOff(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Boolean IsOn,TCollection_AsciiString& Message) ;
|
|
Standard_EXPORT static void ClearClippingPlane(const Handle(AIS_InteractiveContext)& aContext,const Handle(V3d_View)& aView,const Standard_Boolean IsOn) ;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Methods PROTECTED
|
|
//
|
|
|
|
|
|
// Fields PROTECTED
|
|
//
|
|
|
|
|
|
private:
|
|
|
|
// Methods PRIVATE
|
|
//
|
|
|
|
|
|
// Fields PRIVATE
|
|
//
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// other Inline functions and methods (like "C++: function call" methods)
|
|
//
|
|
|
|
|
|
#endif
|