![]() |
OGS
|
|
A VTK filter that creates a point cloud representing a surface defined by pixel values
Definition at line 23 of file VtkImageDataToSurfacePointsFilter.h.
#include <VtkImageDataToSurfacePointsFilter.h>
Public Member Functions | |
| vtkTypeMacro (VtkImageDataToSurfacePointsFilter, vtkPolyDataAlgorithm) | |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| Prints information about itself. | |
| vtkGetMacro (PointsPerPixel, vtkIdType) | |
| vtkSetMacro (PointsPerPixel, vtkIdType) | |
Static Public Member Functions | |
| static VtkImageDataToSurfacePointsFilter * | New () |
| Create a new objects (required because of VTKs reference counting) | |
Protected Member Functions | |
| VtkImageDataToSurfacePointsFilter () | |
| ~VtkImageDataToSurfacePointsFilter () override=default | |
| int | FillInputPortInformation (int port, vtkInformation *info) override |
| Sets input port to vtkImageData. | |
| int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
| Updates the graphical object. | |
Private Member Functions | |
| void | createPointSurface (vtkSmartPointer< vtkPoints > &points, vtkSmartPointer< vtkCellArray > &cells, std::size_t pnt_idx, MathLib::Point3d const &min_pnt, MathLib::Point3d const &max_pnt, GeoLib::Raster const &raster) |
| Creates the point objects based on the parameters set by the user. | |
| double | getRandomNumber (double const &min, double const &max) const |
| Returns a random number in [min, max]. | |
Private Attributes | |
| vtkIdType | PointsPerPixel {20} |
|
protecteddefault |
Referenced by New(), and vtkTypeMacro().
|
overrideprotecteddefault |
|
private |
Creates the point objects based on the parameters set by the user.
Definition at line 146 of file VtkImageDataToSurfacePointsFilter.cpp.
References getRandomNumber(), and GeoLib::Raster::interpolateValueAtPoint().
Referenced by RequestData().
|
overrideprotected |
Sets input port to vtkImageData.
Definition at line 37 of file VtkImageDataToSurfacePointsFilter.cpp.
|
private |
Returns a random number in [min, max].
Definition at line 168 of file VtkImageDataToSurfacePointsFilter.cpp.
Referenced by createPointSurface().
|
static |
Create a new objects (required because of VTKs reference counting)
References VtkImageDataToSurfacePointsFilter().
Referenced by VtkCompositeImageToSurfacePointsFilter::init().
|
override |
Prints information about itself.
Definition at line 32 of file VtkImageDataToSurfacePointsFilter.cpp.
|
overrideprotected |
Updates the graphical object.
Definition at line 44 of file VtkImageDataToSurfacePointsFilter.cpp.
References createPointSurface(), and PointsPerPixel.
| VtkImageDataToSurfacePointsFilter::vtkGetMacro | ( | PointsPerPixel | , |
| vtkIdType | ) |
References PointsPerPixel.
| VtkImageDataToSurfacePointsFilter::vtkSetMacro | ( | PointsPerPixel | , |
| vtkIdType | ) |
References PointsPerPixel.
| VtkImageDataToSurfacePointsFilter::vtkTypeMacro | ( | VtkImageDataToSurfacePointsFilter | , |
| vtkPolyDataAlgorithm | ) |
References VtkImageDataToSurfacePointsFilter().
|
private |
Definition at line 60 of file VtkImageDataToSurfacePointsFilter.h.
Referenced by RequestData(), vtkGetMacro(), and vtkSetMacro().