ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cc2Point5DimEditor Class Referenceabstract

2.5D data editor (generic interface) More...

#include <ecv2.5DimEditor.h>

Inheritance diagram for cc2Point5DimEditor:
Collaboration diagram for cc2Point5DimEditor:

Public Member Functions

 cc2Point5DimEditor ()
 Default constructor. More...
 
virtual ~cc2Point5DimEditor ()
 Destructor. More...
 

Protected Member Functions

virtual double getGridStep () const =0
 Returns projection grid step. More...
 
virtual unsigned char getProjectionDimension () const =0
 Returns projection dimension. More...
 
virtual ccRasterGrid::ProjectionType getTypeOfProjection () const =0
 Returns type of projection. More...
 
virtual ccBBox getCustomBBox () const
 Returns custom bbox. More...
 
virtual void gridIsUpToDate (bool state)=0
 Declares whether the grid is up-to-date or not. More...
 
virtual void update2DDisplayZoom (ccBBox &box)
 Updates the 2D display zoom. More...
 
virtual bool showGridBoxEditor ()
 Show grid box editor and update. More...
 
virtual QString getGridSizeAsString () const
 Returns the grid size as a string. More...
 
virtual bool getGridSize (unsigned &width, unsigned &height) const
 Returns the grid size. More...
 
void createBoundingBoxEditor (const ccBBox &gridBBox, QWidget *parent)
 Creates the bounding-box editor. More...
 
void create2DView (QFrame *parentFrame)
 Creates the 2D view. More...
 
ccRasterGrid::EmptyCellFillOption getFillEmptyCellsStrategy (QComboBox *comboBox) const
 Returns the empty cell strategy (for a given combo-box) More...
 
ccPointCloudconvertGridToCloud (const std::vector< ccRasterGrid::ExportableFields > &exportedFields, bool interpolateSF, bool interpolateColors, bool resampleInputCloudXY, bool resampleInputCloudZ, ccGenericPointCloud *inputCloud, bool fillEmptyCells, double emptyCellsHeight, bool exportToOriginalCS) const
 Shortcut to ccRasterGrid::convertToCloud. More...
 

Protected Attributes

ccRasterGrid m_grid
 Raster grid. More...
 
ccBoundingBoxEditorDlgm_bbEditorDlg
 Associated dialog. More...
 
ccPointCloudm_rasterCloud
 'Raster' cloud More...
 

Detailed Description

2.5D data editor (generic interface)

Definition at line 21 of file ecv2.5DimEditor.h.

Constructor & Destructor Documentation

◆ cc2Point5DimEditor()

cc2Point5DimEditor::cc2Point5DimEditor ( )

Default constructor.

Definition at line 30 of file ecv2.5DimEditor.cpp.

◆ ~cc2Point5DimEditor()

cc2Point5DimEditor::~cc2Point5DimEditor ( )
virtual

Member Function Documentation

◆ convertGridToCloud()

ccPointCloud * cc2Point5DimEditor::convertGridToCloud ( const std::vector< ccRasterGrid::ExportableFields > &  exportedFields,
bool  interpolateSF,
bool  interpolateColors,
bool  resampleInputCloudXY,
bool  resampleInputCloudZ,
ccGenericPointCloud inputCloud,
bool  fillEmptyCells,
double  emptyCellsHeight,
bool  exportToOriginalCS 
) const
protected

◆ create2DView()

◆ createBoundingBoxEditor()

void cc2Point5DimEditor::createBoundingBoxEditor ( const ccBBox gridBBox,
QWidget *  parent 
)
protected

Creates the bounding-box editor.

Definition at line 55 of file ecv2.5DimEditor.cpp.

References m_bbEditorDlg, and ccBoundingBoxEditorDlg::setBaseBBox().

Referenced by ccRasterizeTool::ccRasterizeTool(), and ccVolumeCalcTool::ccVolumeCalcTool().

◆ getCustomBBox()

ccBBox cc2Point5DimEditor::getCustomBBox ( ) const
protectedvirtual

◆ getFillEmptyCellsStrategy()

◆ getGridSize()

bool cc2Point5DimEditor::getGridSize ( unsigned &  width,
unsigned &  height 
) const
protectedvirtual

◆ getGridSizeAsString()

QString cc2Point5DimEditor::getGridSizeAsString ( ) const
protectedvirtual

Returns the grid size as a string.

Definition at line 109 of file ecv2.5DimEditor.cpp.

References getGridSize().

Referenced by ccRasterizeTool::updateGridInfo(), and ccVolumeCalcTool::updateGridInfo().

◆ getGridStep()

virtual double cc2Point5DimEditor::getGridStep ( ) const
protectedpure virtual

Returns projection grid step.

Implemented in ccVolumeCalcTool, and ccRasterizeTool.

Referenced by getGridSize().

◆ getProjectionDimension()

virtual unsigned char cc2Point5DimEditor::getProjectionDimension ( ) const
protectedpure virtual

Returns projection dimension.

Returns
dimension as int (0: X, 1: Y, 2:Z)

Implemented in ccVolumeCalcTool, and ccRasterizeTool.

Referenced by convertGridToCloud(), getGridSize(), and showGridBoxEditor().

◆ getTypeOfProjection()

virtual ccRasterGrid::ProjectionType cc2Point5DimEditor::getTypeOfProjection ( ) const
protectedpure virtual

Returns type of projection.

Implemented in ccVolumeCalcTool, and ccRasterizeTool.

◆ gridIsUpToDate()

virtual void cc2Point5DimEditor::gridIsUpToDate ( bool  state)
protectedpure virtual

Declares whether the grid is up-to-date or not.

Implemented in ccVolumeCalcTool, and ccRasterizeTool.

Referenced by showGridBoxEditor().

◆ showGridBoxEditor()

bool cc2Point5DimEditor::showGridBoxEditor ( )
protectedvirtual

Show grid box editor and update.

Returns
whether the box was modified or not

Definition at line 41 of file ecv2.5DimEditor.cpp.

References ccBoundingBoxEditorDlg::exec(), getProjectionDimension(), gridIsUpToDate(), m_bbEditorDlg, and ccBoundingBoxEditorDlg::set2DMode().

Referenced by ccRasterizeTool::showGridBoxEditor(), and ccVolumeCalcTool::showGridBoxEditor().

◆ update2DDisplayZoom()

Member Data Documentation

◆ m_bbEditorDlg

ccBoundingBoxEditorDlg* cc2Point5DimEditor::m_bbEditorDlg
protected

Associated dialog.

Definition at line 90 of file ecv2.5DimEditor.h.

Referenced by createBoundingBoxEditor(), getCustomBBox(), and showGridBoxEditor().

◆ m_grid

◆ m_rasterCloud


The documentation for this class was generated from the following files: