Raytracing: include header with export macros

This commit is contained in:
wmayer
2022-03-24 20:40:31 +01:00
parent 1bf7803b15
commit b02854f842
10 changed files with 58 additions and 30 deletions

View File

@@ -39,8 +39,7 @@ class Property;
/** Base class of all Feature classes in FreeCAD
*/
//class LuxFeature: public Part::PartFeature
class AppRaytracingExport LuxFeature: public Raytracing::RaySegment
class RaytracingExport LuxFeature: public Raytracing::RaySegment
{
PROPERTY_HEADER(Raytracing::LuxFeature);
public:

View File

@@ -29,6 +29,7 @@
#include <App/DocumentObjectGroup.h>
#include <App/PropertyStandard.h>
#include <App/PropertyFile.h>
#include <Mod/Raytracing/RaytracingGlobal.h>
namespace Raytracing
{
@@ -38,7 +39,7 @@ class Property;
/** Base class of all Feature classes in FreeCAD
*/
//class RayFeature: public Part::PartFeature
class AppRaytracingExport LuxProject: public App::DocumentObjectGroup
class RaytracingExport LuxProject: public App::DocumentObjectGroup
{
PROPERTY_HEADER(Raytracing::LuxProject);

View File

@@ -37,7 +37,7 @@ namespace Data { class ComplexGeoData; }
namespace Raytracing
{
class AppRaytracingExport LuxTools
class RaytracingExport LuxTools
{
public:
/// returns the given camera position as luxray defines

View File

@@ -26,6 +26,7 @@
#include <gp_Vec.hxx>
#include <vector>
#include <Mod/Raytracing/RaytracingGlobal.h>
class TopoDS_Shape;
class TopoDS_Face;
@@ -71,7 +72,7 @@ public:
};
class AppRaytracingExport PovTools
class RaytracingExport PovTools
{
public:
/// returns the given camera position as povray defines in a file

View File

@@ -26,15 +26,6 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define PartExport __declspec(dllimport)
# define AppRaytracingExport __declspec(dllexport)
#else // for Linux
# define PartExport
# define AppRaytracingExport
#endif
#ifdef _PreComp_
// standard

View File

@@ -39,8 +39,7 @@ class Property;
/** Base class of all Feature classes in FreeCAD
*/
//class RayFeature: public Part::PartFeature
class AppRaytracingExport RayFeature: public Raytracing::RaySegment
class RaytracingExport RayFeature: public Raytracing::RaySegment
{
PROPERTY_HEADER(Raytracing::RayFeature);
public:

View File

@@ -29,6 +29,7 @@
#include <App/DocumentObjectGroup.h>
#include <App/PropertyStandard.h>
#include <App/PropertyFile.h>
#include <Mod/Raytracing/RaytracingGlobal.h>
namespace Raytracing
{
@@ -37,8 +38,7 @@ class Property;
/** Base class of all Feature classes in FreeCAD
*/
//class RayFeature: public Part::PartFeature
class AppRaytracingExport RayProject: public App::DocumentObjectGroup
class RaytracingExport RayProject: public App::DocumentObjectGroup
{
PROPERTY_HEADER(Raytracing::RayProject);

View File

@@ -30,6 +30,7 @@
#include <App/DocumentObject.h>
#include <App/PropertyStandard.h>
#include <App/PropertyGeo.h>
#include <Mod/Raytracing/RaytracingGlobal.h>
namespace Raytracing
@@ -38,7 +39,7 @@ namespace Raytracing
/** Base class of all View Features in the drawing module
*/
class AppRaytracingExport RaySegment: public App::DocumentObject
class RaytracingExport RaySegment: public App::DocumentObject
{
PROPERTY_HEADER(Raytracing::RaySegment);

View File

@@ -25,17 +25,6 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define PartExport __declspec(dllimport)
# define AppRaytracingExport __declspec(dllimport)
# define AppRaytracingGuiExport __declspec(dllexport)
#else // for Linux
# define PartExport
# define AppRaytracingExport
# define AppRaytracingGuiExport
#endif
#ifdef _MSC_VER
# pragma warning(disable : 4005)
#endif

View File

@@ -0,0 +1,47 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include <FCGlobal.h>
#ifndef RAYTRACING_GLOBAL_H
#define RAYTRACING_GLOBAL_H
// Raytracing
#ifndef RaytracingExport
#ifdef Raytracing_EXPORTS
# define RaytracingExport FREECAD_DECL_EXPORT
#else
# define RaytracingExport FREECAD_DECL_IMPORT
#endif
#endif
// RaytracingGui
#ifndef RaytracingGuiExport
#ifdef RaytracingGui_EXPORTS
# define RaytracingGuiExport FREECAD_DECL_EXPORT
#else
# define RaytracingGuiExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //RAYTRACING_GLOBAL_H