File vtkF3DImporter.h
Location: vtkF3DImporter.h
Classes
Includes
- vtkextModule.h
Source
#ifndef vtkF3DImporter_h
#define vtkF3DImporter_h
#include "vtkextModule.h"
#include <vtkImporter.h>
#include <vtkVersion.h>
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 5, 20250923)
#include <vtkResourceStream.h>
#include <vtkSmartPointer.h>
#endif
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 20240707)
#include <vtkActorCollection.h>
#endif
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 20240201)
#include <vtkDataAssembly.h>
#endif
class vtkInformationIntegerKey;
class VTKEXT_EXPORT vtkF3DImporter : public vtkImporter
{
public:
vtkTypeMacro(vtkF3DImporter, vtkImporter);
static vtkInformationIntegerKey* ACTOR_IS_ARMATURE();
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 3, 20240707)
bool UpdateAtTimeValue(double timeValue) override;
#else
virtual bool UpdateAtTimeValue(double timeValue);
void UpdateTimeStep(double timeValue) override;
#endif
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 4, 20250507)
enum class AnimationSupportLevel : unsigned char{ NONE, UNIQUE, SINGLE, MULTI };
virtual AnimationSupportLevel GetAnimationSupportLevel()
{
return AnimationSupportLevel::MULTI;
}
#endif
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 5, 20251210)
using vtkImporter::GetTemporalInformation;
virtual bool GetTemporalInformation(
vtkIdType animationIndex, double timeRange[2], int& nbTimeSteps, vtkDoubleArray* timeSteps);
#endif
void SetFailureStatus();
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 5, 20250923)
vtkSetFilePathMacro(FileName);
vtkGetFilePathMacro(FileName);
vtkSetSmartPointerMacro(Stream, vtkResourceStream);
vtkGetSmartPointerMacro(Stream, vtkResourceStream);
#endif
// needs https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10861
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 20240201)
vtkGetObjectMacro(SceneHierarchy, vtkDataAssembly);
#endif
protected:
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 20240201)
vtkSmartPointer<vtkDataAssembly> SceneHierarchy;
#endif
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 20240707)
vtkNew<vtkActorCollection> ActorCollection;
#endif
private:
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 5, 20250923)
char* FileName = nullptr;
vtkSmartPointer<vtkResourceStream> Stream;
#endif
};
#endif