 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
23 #include <pcl/surface/texture_mapping.h>
26 #include <pcl/ModelCoefficients.h>
27 #include <pcl/point_cloud.h>
28 #include <vtkPolyData.h>
29 #include <vtkSmartPointer.h>
35 class vtkPropAssembly;
36 class vtkAbstractWidget;
37 class vtkUnstructuredGrid;
44 class PinholeCameraTrajectory;
54 const std::string& filePath,
55 bool show_cameras =
false,
56 bool verbose =
false);
58 const std::string& filePath,
60 bool show_cameras =
false,
61 bool verbose =
false);
63 const PCLMesh::ConstPtr& triangles,
64 const pcl::texture_mapping::CameraVector& cameras,
65 bool show_cameras =
false,
66 bool verbose =
false);
74 vtkPolyData* polyData = vtkPolyData::SafeDownCast(
77 polyData->GetNumberOfCells() != polyData->GetNumberOfVerts());
88 bool use_scalars =
true,
89 bool use_vbos =
false);
99 bool use_scalars =
true,
100 bool use_vbos =
false);
126 bool useLineSource =
true);
130 bool is_cell =
false);
150 const pcl::ModelCoefficients& coefficients,
156 const pcl::ModelCoefficients& coefficients);
158 double axesLength = 1.5,
159 const std::string& xLabel =
"x",
160 const std::string& yLabel =
"y",
161 const std::string& zLabel =
"z",
162 const std::string& xPlus =
"R",
163 const std::string& xMinus =
"L",
164 const std::string& yPlus =
"A",
165 const std::string& yMinus =
"P",
166 const std::string& zPlus =
"I",
167 const std::string& zMinus =
"S");
pcl::PolygonMesh PCLMesh
Definition: PCLCloud.h:31
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
double colors[3]
Definition: TriangleMeshIO.cpp:53
#define FROM_PCL_CLOUD
Definition: PCLConv.h:11
Definition: MaterialConverter.h:18
std::string filename
Definition: PointCloudIO.cpp:47
unsigned colorScaleRampWidth
Color scale ramp width (for display)
Definition: ecvGuiParameters.h:93
normal_z rgb
Definition: my_point_types.h:168
ScalarType stop() const
Definition: ecvScalarField.h:44
ecvColor::Rgbub textDefaultCol
Default text color.
Definition: ecvGuiParameters.h:50
normal_z x
Definition: my_point_types.h:165
static Eigen::Vector3d ToEigen(const Type col[3])
Definition: ecvColorTypes.h:72
const cloudViewer::geometry::LineSet & getSensorLegLines() const
Definition: ecvGBLSensor.h:230
static std::shared_ptr< LineSet > CreateFromOrientedBoundingBox(const ecvOrientedBBox &box)
Factory function to create a LineSet from an OrientedBoundingBox.
Definition: LineSetFactory.cpp:71
Eigen::Matrix< Index, 2, 1 > Vector2i
Definition: knncpp.h:29
unsigned defaultFontSize
Default displayed font size.
Definition: ecvGuiParameters.h:96
void apply(float vec[3]) const
Applies transformation to a 3D vector (in place) - float version.
Definition: ecvGLMatrixTpl.h:1039
#define VTK_CREATE(type, name)
Definition: vtkMinkowskiFilter.cxx:24
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
GraphType data
Definition: graph_cut.cc:138
QString viewID
Definition: ecvDrawContext.h:373
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
std::set< Label > LabelSet
Type of a list of custom labels.
Definition: ecvColorScale.h:160
const ecvColor::Rgb * getColor(ScalarType value) const
Definition: ecvScalarField.h:139
ScalarType start() const
Definition: ecvScalarField.h:43
constexpr Rgb lightGrey(static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8))
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
bool isZeroAlwaysShown() const
Returns whether 0 should always appear in associated color ramp or not.
Definition: ecvScalarField.h:164
const cloudViewer::geometry::LineSet & getAxis() const
Definition: ecvCameraSensor.h:547
Definition: WidgetMap.h:20
const cloudViewer::geometry::LineSet & getNearPlane() const
Definition: ecvCameraSensor.h:540
int height_
Height of the image.
Definition: PinholeCameraIntrinsic.h:110
math::float4 color
Definition: LineSetBuffers.cpp:46
const cloudViewer::geometry::LineSet & getSideLines() const
Definition: ecvCameraSensor.h:543
std::vector< Eigen::Vector3d > points_
Points coordinates.
Definition: LineSet.h:156
PinholeCameraIntrinsic intrinsic_
PinholeCameraIntrinsic object.
Definition: PinholeCameraParameters.h:35
std::pair< Eigen::Vector3d, Eigen::Vector3d > GetLineCoordinate(size_t line_index) const
Returns the coordinates of the line at the given index.
Definition: LineSet.h:92
double normals[3]
Definition: TriangleMeshIO.cpp:54
bool logScale() const
Returns whether scalar field is logarithmic or not.
Definition: ecvScalarField.h:180
int width
Definition: FileIOFactory.cpp:142
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
Definition: vtkContext2DScalarBarActor.h:31
std::vector< Eigen::Vector3d > colors_
RGB colors of lines.
Definition: LineSet.h:160
const cloudViewer::geometry::LineSet & getSensorAxis() const
Definition: ecvGBLSensor.h:233
Contains both intrinsic and extrinsic pinhole camera parameters.
Definition: PinholeCameraParameters.h:22
int height
Definition: FileIOFactory.cpp:143
normal_z y
Definition: my_point_types.h:168
int width_
Width of the image.
Definition: PinholeCameraIntrinsic.h:108
Definition: ecvRenderingTools.cpp:137
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
Simple histogram structure.
Definition: ecvScalarField.h:200
constexpr Rgb yellow(MAX, MAX, 0)
constexpr Rgb green(0, MAX, 0)
vlabel(int y, int y1, int y2, double v)
Definition: PclTools.cpp:675
pcl::TextureMesh PCLTextureMesh
Definition: PCLCloud.h:33
const cloudViewer::geometry::LineSet & getArrow() const
Definition: ecvCameraSensor.h:546
Definition: vtkScalarBarRepresentationCustom.h:13
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
const ecvOrientedBBox & getSensorHead() const
Definition: ecvGBLSensor.h:236
int points
Definition: FileIOFactory.cpp:144
@ LowerRightCorner
Definition: vtkScalarBarRepresentationCustom.h:25
unsigned displayedNumPrecision
Displayed numbers precision.
Definition: ecvGuiParameters.h:100
double getGlobalShift() const
Returns the global shift (if any)
Definition: ecvScalarField.h:234
Camera (projective) sensor.
Definition: ecvCameraSensor.h:24
std::string GetFileBaseName(const std::string &filename)
Definition: FileSystem.cpp:310
bool isInRange(ScalarType val) const
Returns whether a value is inside range or not.
Definition: ecvScalarField.h:86
ScalarType min() const
Definition: ecvScalarField.h:42
Definition: vtkDiscretizableColorTransferFunctionCustom.h:17
bool colorScaleShowHistogram
Color scale option: show histogram next to color ramp.
Definition: ecvGuiParameters.h:87
int glH
GL screen height.
Definition: ecvDrawContext.h:397
const Range & saturationRange() const
Access to the range of saturation values.
Definition: ecvScalarField.h:114
const Histogram & getHistogram() const
Returns associated histogram values (for display)
Definition: ecvScalarField.h:206
unsigned maxValue
Max histogram value.
Definition: ecvScalarField.h:202
bool areNaNValuesShownInGrey() const
Returns whether NaN values are displayed in gray or hidden.
Definition: ecvScalarField.h:156
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
const ccColorScale::Shared & getColorScale() const
Returns associated color scale.
Definition: ecvScalarField.h:186
RGB color structure.
Definition: ecvColorTypes.h:49
ccScalarField * sfColorScaleToDisplay
Currently displayed color scale (the corresponding scalar field in fact)
Definition: ecvDrawContext.h:454
Triangular mesh.
Definition: ecvMesh.h:35
bool symmetricalScale() const
Returns whether the color scale s symmetrical or not.
Definition: ecvScalarField.h:174
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
ScalarType max() const
Definition: ecvScalarField.h:45
Definition: PinholeCameraTrajectory.h:22
constexpr Rgb red(MAX, 0, 0)
#define TO_PCL_CLOUD
Definition: PCLConv.h:12
Display context.
Definition: ecvDrawContext.h:365
std::pair< double, double > GetPrincipalPoint() const
Definition: PinholeCameraIntrinsic.h:93
float renderZoom
Current zoom (screen to file rendering mode)
Definition: ecvDrawContext.h:402
bool ListFilesInDirectoryWithExtension(const std::string &directory, const std::string &extname, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:567
std::vector< Eigen::Vector2i > lines_
Lines denoted by the index of points forming the line.
Definition: LineSet.h:158
Eigen::Matrix4d_u extrinsic_
Camera extrinsic parameters.
Definition: PinholeCameraParameters.h:37
normal_z z
Definition: my_point_types.h:165
constexpr static RgbTpl FromEigen(const Eigen::Vector3d &t)
Definition: ecvColorTypes.h:86
pcl::PointXYZ PointT
Definition: PCLCloud.h:16
std::pair< double, double > GetFocalLength() const
Returns the focal length in a tuple of X-axis and Y-axis focal lengths.
Definition: PinholeCameraIntrinsic.h:87
pcl::PointCloud< NormalT > CloudNormal
Definition: PCLCloud.h:27
pcl::PointCloud< PointNT > PointCloudNormal
Definition: PCLCloud.h:25
GUI parameters.
Definition: ecvGuiParameters.h:30
const Range & displayRange() const
Access to the range of displayed values.
Definition: ecvScalarField.h:108
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
pcl::PointCloud< PointT > PointCloudT
Definition: PCLCloud.h:17
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
std::vector< PinholeCameraParameters > parameters_
List of PinholeCameraParameters objects.
Definition: PinholeCameraTrajectory.h:35