mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024002: Overall code and build procedure refactoring - samples
Modified MFC samples; minor fix in headers (for building products)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
|
||||
class ISession_Curve;
|
||||
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
|
||||
|
||||
class ISession_Curve : public AIS_InteractiveObject
|
||||
@@ -20,7 +20,7 @@ class ISession_Curve : public AIS_InteractiveObject
|
||||
public:
|
||||
ISession_Curve(const Handle(Geom_Curve)& aCurve);
|
||||
virtual ~ISession_Curve();
|
||||
DEFINE_STANDARD_RTTI(ISession_Curve)
|
||||
DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
|
||||
private:
|
||||
|
||||
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
|
||||
|
@@ -15,11 +15,11 @@
|
||||
#define WAIT_A_SECOND WaitForInput(1000)
|
||||
|
||||
class CViewer3dDoc;
|
||||
class Handle_AIS_InteractiveObject;
|
||||
class Handle_AIS_Point;
|
||||
class Handle_Geom_Surface;
|
||||
class Handle_Geom_Curve;
|
||||
class Handle_Geom2d_Curve;
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <AIS_Point.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
class Quantity_Color;
|
||||
|
||||
class OCCDemo_Presentation
|
||||
|
@@ -146,7 +146,7 @@ Handle_AIS_TexturedShape TexturesExt_Presentation::Texturize(const TopoDS_Shape&
|
||||
// load texture from file if it is not an integer value
|
||||
// integer value indicates a number of texture in predefined TexturesExt enumeration
|
||||
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
|
||||
initfile += "\\Data\\";
|
||||
initfile += "\\..\\..\\..\\samples\\mfc\\standard\\04_Viewer3d\\Data\\";
|
||||
if (!aTFileName.IsIntegerValue())
|
||||
{
|
||||
initfile += aTFileName.ToCString();
|
||||
@@ -176,7 +176,7 @@ Standard_Boolean TexturesExt_Presentation::loadShape(TopoDS_Shape& aShape,
|
||||
{
|
||||
// create a TopoDS_Shape -> read from a brep file
|
||||
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
|
||||
initfile += "\\Data\\";
|
||||
initfile += "\\..\\..\\..\\samples\\mfc\\standard\\04_Viewer3d\\Data\\";
|
||||
initfile += aFileName.ToCString();
|
||||
|
||||
std::filebuf aFileBuf;
|
||||
|
@@ -10,9 +10,9 @@
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "OCCDemo_Presentation.h"
|
||||
#include <AIS_TexturedShape.hxx>
|
||||
class TopoDS_Shape;
|
||||
class TCollection_AsciiString;
|
||||
class Handle_AIS_TexturedShape;
|
||||
|
||||
class TexturesExt_Presentation : public OCCDemo_Presentation
|
||||
{
|
||||
|
@@ -11,6 +11,7 @@
|
||||
#include <V3d_PositionalLight.hxx>
|
||||
#include <V3d_AmbientLight.hxx>
|
||||
#include <V3d_SpotLight.hxx>
|
||||
#include <Graphic3d_GraphicDriver.hxx>
|
||||
|
||||
#include <Graphic3d_ClipPlane.hxx>
|
||||
|
||||
|
Reference in New Issue
Block a user