 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
10 #include <ui_sfArithmeticsDlg.h>
17 public Ui::SFArithmeticsDlg {
58 QString sf2 = QString());
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
@ POW3
Definition: ecvScalarFieldArithmeticsDlg.h:33
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
@ PLUS
Definition: ecvScalarFieldArithmeticsDlg.h:26
static int s_previouslySelectedOperationIndex
Definition: ecvScalarFieldArithmeticsDlg.cpp:34
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
@ LOG
Definition: ecvScalarFieldArithmeticsDlg.h:35
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
QString getOperationName(QString sf1, QString sf2=QString()) const
Returns selected operation name.
Definition: ecvScalarFieldArithmeticsDlg.cpp:109
static bool s_applyInPlace
Definition: ecvScalarFieldArithmeticsDlg.cpp:35
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
@ MINUS
Definition: ecvScalarFieldArithmeticsDlg.h:27
static QString GetOperationName(Operation op, QString sf1, QString sf2=QString())
Returns operation name.
Definition: ecvScalarFieldArithmeticsDlg.cpp:129
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
static double s_previousConstValue
Definition: ecvScalarFieldArithmeticsDlg.cpp:36
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
@ COS
Definition: ecvScalarFieldArithmeticsDlg.h:37
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
@ INVALID
Definition: ecvScalarFieldArithmeticsDlg.h:46
@ INVERSE
Definition: ecvScalarFieldArithmeticsDlg.h:44
#define slots
Definition: PythonPlugin.cpp:25
Operation getOperation() const
Returns selected operation.
Definition: ecvScalarFieldArithmeticsDlg.cpp:99
bool isConstantValue
Definition: ecvScalarFieldArithmeticsDlg.h:72
bool resizeSafe(std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0)
Resizes memory (no exception thrown)
Definition: ScalarField.cpp:81
@ ATAN
Definition: ecvScalarFieldArithmeticsDlg.h:42
static bool ValidValue(ScalarType value)
Returns whether a scalar value is valid or not.
Definition: ScalarField.h:61
static const unsigned s_opCount
Definition: ecvScalarFieldArithmeticsDlg.cpp:26
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
Definition: ecvScalarFieldArithmeticsDlg.h:16
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
bool apply(ccPointCloud *cloud)
Applies operation on a given cloud.
Definition: ecvScalarFieldArithmeticsDlg.cpp:151
@ DIVIDE
Definition: ecvScalarFieldArithmeticsDlg.h:29
Definition: sfEditDlg.h:16
int getSF2Index()
Returns second selected SF index.
Definition: ecvScalarFieldArithmeticsDlg.cpp:94
@ SIN
Definition: ecvScalarFieldArithmeticsDlg.h:38
@ POW2
Definition: ecvScalarFieldArithmeticsDlg.h:32
static const char s_opNames[s_opCount][12]
Definition: ecvScalarFieldArithmeticsDlg.cpp:28
void onOperationIndexChanged(int index)
Called when the operation combo-box is modified.
Definition: ecvScalarFieldArithmeticsDlg.cpp:79
@ ASIN
Definition: ecvScalarFieldArithmeticsDlg.h:41
void onSF2IndexChanged(int index)
Called when the SF2 combo-box is modified.
Definition: ecvScalarFieldArithmeticsDlg.cpp:84
static Operation GetOperationByName(QString name)
Returns the operation enumerator based on its name.
Definition: ecvScalarFieldArithmeticsDlg.cpp:116
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
@ LOG10
Definition: ecvScalarFieldArithmeticsDlg.h:36
int getSF1Index()
Returns first selected SF index.
Definition: ecvScalarFieldArithmeticsDlg.cpp:90
@ MULTIPLY
Definition: ecvScalarFieldArithmeticsDlg.h:28
double constantValue
Definition: ecvScalarFieldArithmeticsDlg.h:73
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
Operation
Arithmetic operations.
Definition: ecvScalarFieldArithmeticsDlg.h:25
int sfIndex
Definition: ecvScalarFieldArithmeticsDlg.h:74
@ TAN
Definition: ecvScalarFieldArithmeticsDlg.h:39
SF2()
Definition: ecvScalarFieldArithmeticsDlg.h:70
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
@ SQRT
Definition: ecvScalarFieldArithmeticsDlg.h:31
ccScalarFieldArithmeticsDlg(ccPointCloud *cloud, QWidget *parent=0)
Default constructor.
Definition: ecvScalarFieldArithmeticsDlg.cpp:38
@ ACOS
Definition: ecvScalarFieldArithmeticsDlg.h:40
static bool Apply(ccPointCloud *cloud, Operation op, int sf1Idx, bool inplace, SF2 *sf2=0, QWidget *parent=0)
Applies operation on a given cloud.
Definition: ecvScalarFieldArithmeticsDlg.cpp:169
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
unsigned currentSize() const
Definition: ScalarField.h:100
@ INT
Definition: ecvScalarFieldArithmeticsDlg.h:43
Secondary SF descriptor.
Definition: ecvScalarFieldArithmeticsDlg.h:69
std::string name
Definition: FileIOFactory.cpp:129
@ EXP
Definition: ecvScalarFieldArithmeticsDlg.h:34