OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DataSourceResult3D.h
Go to the documentation of this file.
1#pragma once
5#include "EntityResultBase.h"
7
8#include <vector>
9#include <vtkRectilinearGrid.h>
10#include <vtkNew.h>
11
12class DataSourceResult3D : public DataSourceManagerItem, public EntityResultBase
13{
14public:
16 virtual ~DataSourceResult3D();
17
18 virtual bool loadData(EntityBase *resultEntity, EntityBase *meshEntity, ClassFactory* classFactory) override;
19
20 vtkRectilinearGrid * GetVtkGrid() { return vtkGrid.GetPointer(); };
21
22 double GetXMinCoordinate() { return _xMinCoordinate; }
23 double GetYMinCoordinate() { return _yMinCoordinate; }
24 double GetZMinCoordinate() { return _zMinCoordinate; }
25 double GetXMaxCoordinate() { return _xMaxCoordinate; }
26 double GetYMaxCoordinate() { return _yMaxCoordinate; }
27 double GetZMaxCoordinate() { return _zMaxCoordinate; }
28
29private:
30 EntityResult3DData * entityResultData3D = nullptr;
31 vtkNew<vtkRectilinearGrid> vtkGrid;
32
33 void SetGridValues(const double * xComponent, const double * yComponent, const double * zComponent, size_t size);
34 void SetGridDimensions(EntityMeshCartesianData * meshData);
35 const double FindMinimumDiscretization(std::vector<double> & coordinates);
36 void FreeMemory(void);
37
38 double _xMinCoordinate;
39 double _yMinCoordinate;
40 double _zMinCoordinate;
41 double _xMaxCoordinate;
42 double _yMaxCoordinate;
43 double _zMaxCoordinate;
44
45};
Definition DataSourceManagerItem.h:17
Definition DataSourceResult3D.h:13
double GetZMaxCoordinate()
Definition DataSourceResult3D.h:27
double GetYMinCoordinate()
Definition DataSourceResult3D.h:23
double GetXMaxCoordinate()
Definition DataSourceResult3D.h:25
virtual ~DataSourceResult3D()
Definition DataSourceResult3D.cpp:15
double GetYMaxCoordinate()
Definition DataSourceResult3D.h:26
vtkRectilinearGrid * GetVtkGrid()
Definition DataSourceResult3D.h:20
double GetZMinCoordinate()
Definition DataSourceResult3D.h:24
double GetXMinCoordinate()
Definition DataSourceResult3D.h:22
virtual bool loadData(EntityBase *resultEntity, EntityBase *meshEntity, ClassFactory *classFactory) override
Definition DataSourceResult3D.cpp:20
DataSourceResult3D()
Definition DataSourceResult3D.cpp:13