int aNumberOfRealComponents = aRealArray->GetNumberOfComponents();
int aNumberOfImagComponents = anImagArray->GetNumberOfComponents();
- if (aNumberOfRealComponents >= 3 and aNumberOfImagComponents >= 3)
+ if (aNumberOfRealComponents >= 3 && aNumberOfImagComponents >= 3)
{
anOutputMDSet->CopyStructure(anInputMDSet);
vtkUnstructuredGrid* aCloneDS = aSourceDS->NewInstance();
ENDFOREACH(class)
ADD_LIBRARY(MEDLoaderForPV SHARED MEDFileFieldRepresentationTree.cxx MEDTimeReq.cxx MEDUtilities.cxx vtkGenerateVectors.cxx)
-TARGET_LINK_LIBRARIES(MEDLoaderForPV ${MED_medloader} ${MEDFILE_C_LIBRARIES})
+TARGET_LINK_LIBRARIES(MEDLoaderForPV vtkCommonCore vtkCommonDataModel ${MED_medloader} ${MEDFILE_C_LIBRARIES})
VTK_MODULE_LIBRARY(vtkMEDReader ${MEDReader_SRCS})
-TARGET_LINK_LIBRARIES(vtkMEDReader MEDLoaderForPV ${MEDFILE_C_LIBRARIES})
+TARGET_LINK_LIBRARIES(vtkMEDReader vtkPVVTKExtensionsRendering vtkRenderingFreeType vtkRenderingOpenGL vtkRenderingFreeTypeOpenGL vtkInteractionStyle vtkFiltersCore vtkFiltersGeneral MEDLoaderForPV ${MEDFILE_C_LIBRARIES})
INSTALL(
TARGETS vtkMEDReader MEDLoaderForPV
#include "MEDFileMesh.hxx"
#include "MEDFileField.hxx"
+#include "MEDLoaderForPV.h"
#include "vtkType.h"
mutable std::vector< std::vector< std::pair< vtkQuadratureSchemeDefinition *, unsigned char > > > _defs;
};
-class MEDFileFieldRepresentationLeavesArrays : public ParaMEDMEM::MEDCouplingAutoRefCountObjectPtr<ParaMEDMEM::MEDFileAnyTypeFieldMultiTS>
+class MEDLOADERFORPV_EXPORT MEDFileFieldRepresentationLeavesArrays : public ParaMEDMEM::MEDCouplingAutoRefCountObjectPtr<ParaMEDMEM::MEDFileAnyTypeFieldMultiTS>
{
public:
MEDFileFieldRepresentationLeavesArrays();
ELGACmp _elga_cmp;
};
-class MEDFileFieldRepresentationLeaves
+class MEDLOADERFORPV_EXPORT MEDFileFieldRepresentationLeaves
{
public:
MEDFileFieldRepresentationLeaves();
mutable vtkDataSet *_cached_ds;
};
-class MEDFileFieldRepresentationTree
+class MEDLOADERFORPV_EXPORT MEDFileFieldRepresentationTree
{
public:
MEDFileFieldRepresentationTree();
ParaMEDMEM::MEDCouplingAutoRefCountObjectPtr<ParaMEDMEM::MEDFileFields> _fields;
};
-class TimeKeeper
+class MEDLOADERFORPV_EXPORT TimeKeeper
{
public:
TimeKeeper(int policy);
--- /dev/null
+// Copyright (C) 2010-2014 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __MEDLOADERFORPV_HXX__
+#define __MEDLOADERFORPV_HXX__
+
+#ifdef WIN32
+# if defined MEDLoaderForPV_EXPORTS || defined MEDLOADERFORPV_EXPORTS
+# define MEDLOADERFORPV_EXPORT __declspec( dllexport )
+# else
+# define MEDLOADERFORPV_EXPORT __declspec( dllimport )
+# endif
+#else
+ #define MEDLOADERFORPV_EXPORT
+#endif
+
+#endif
#include <string>
#include <vector>
-class MEDTimeReq
+#include "MEDLoaderForPV.h"
+
+class MEDLOADERFORPV_EXPORT MEDTimeReq
{
public:
virtual int size() const = 0;
virtual ~MEDTimeReq();
};
-class MEDStdTimeReq : public MEDTimeReq
+class MEDLOADERFORPV_EXPORT MEDStdTimeReq : public MEDTimeReq
{
public:
MEDStdTimeReq(int timeReq);
int _time_req;
};
-class MEDModeTimeReq : public MEDTimeReq
+class MEDLOADERFORPV_EXPORT MEDModeTimeReq : public MEDTimeReq
{
public:
MEDModeTimeReq(const std::vector<bool>& v, const std::vector<double>& ts);
#ifndef __MEDUTILITIES_HXX__
#define __MEDUTILITIES_HXX__
+#include "MEDLoaderForPV.h"
+
class vtkInformationIntegerKey;
-class MEDUtilities
+class MEDLOADERFORPV_EXPORT MEDUtilities
{
public:
static vtkInformationIntegerKey *ELGA();
for(int index = 0; index < fielddata->GetNumberOfArrays(); index++)
{
vtkDataArray *data(fielddata->GetArray(index));
- vtkQuadratureSchemeDefinition **dict(0);
+ vtkQuadratureSchemeDefinition **dict;
vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY());
if(key->Has(data->GetInformation()))
{
#ifndef __vtkMEDReader_h_
#define __vtkMEDReader_h_
+#include <string>
+
#include "vtkMultiBlockDataSetAlgorithm.h"
class vtkMutableDirectedGraph;
SERVER_MANAGER_SOURCES ${PARACORBAPLUG_SRCS} )
INCLUDE_DIRECTORIES(${OMNIORB_INCLUDE_DIR} ${MED_ROOT_DIR}/include/salome ${KERNEL_ROOT_DIR}/include/salome)
- SET_TARGET_PROPERTIES(ParaMEDMEM2VTK PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}")
- SET_TARGET_PROPERTIES(ParaMEDCorbaPlugin PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}")
+ ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
TARGET_LINK_LIBRARIES(ParaMEDMEM2VTK
#vtkCommon
ParaMEDMEM2VTK
)
+ #Build library with a static runtime and ignore MSVCRT.lib on WINDOWS
+ IF(WIN32)
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(ParaMEDMEM2VTK PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRTD")
+ SET_TARGET_PROPERTIES(ParaMEDMEM2VTK PROPERTIES COMPILE_FLAGS "/MTd")
+ ELSE()
+ SET_TARGET_PROPERTIES(ParaMEDMEM2VTK PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ SET_TARGET_PROPERTIES(ParaMEDMEM2VTK PROPERTIES COMPILE_FLAGS "/MT")
+ ENDIF()
+ ENDIF(WIN32)
+
INSTALL(TARGETS ParaMEDCorbaPlugin DESTINATION lib/paraview)
INSTALL(TARGETS ParaMEDMEM2VTK DESTINATION lib/salome)