chrono::sensor::ChFilterVisualizePointCloud Class Reference
Description
A filter that, when applied to a sensor, creates a GUI window to visualize the sensor (using GLFW).
This visualizes data as a point cloud. Will only work on data that can be interpreted as point cloud data.
#include <ChFilterVisualizePointCloud.h>
Inheritance diagram for chrono::sensor::ChFilterVisualizePointCloud:

Collaboration diagram for chrono::sensor::ChFilterVisualizePointCloud:

Public Member Functions | |
| ChFilterVisualizePointCloud (int w, int h, float zoom, std::string name={}) | |
| Class constructor. More... | |
| virtual | ~ChFilterVisualizePointCloud () |
| Class destructor. | |
| virtual void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
| Apply function. More... | |
| virtual void | Initialize (std::shared_ptr< ChSensor > pSensor) |
| Initializes all data needed by the filter access apply function. More... | |
Public Member Functions inherited from chrono::sensor::ChFilterVisualize | |
| ChFilterVisualize (int w, int h, std::string name={}) | |
| Class constructor. More... | |
| virtual | ~ChFilterVisualize () |
| Class destructor. | |
Public Member Functions inherited from chrono::sensor::ChFilter | |
| virtual | ~ChFilter () |
| Virtual class desctructor. | |
| std::string & | Name () |
| Accesses the name of the filter. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from chrono::sensor::ChFilterVisualize | |
| void | CreateGlfwWindow (std::shared_ptr< ChSensor > pSensor) |
| Creates a GLFW window for this filter. | |
| void | MakeGlContextActive () |
| Makes this filter's GLFW window active so it can be drawn to. | |
Protected Member Functions inherited from chrono::sensor::ChFilter | |
| ChFilter (std::string name) | |
| protected constructor for the filter which requires a name as input. More... | |
Static Protected Member Functions inherited from chrono::sensor::ChFilterVisualize | |
| static void | OnNewWindow () |
| Helper function for when new window is created. | |
| static void | OnCloseWindow () |
| Helper function for when window is closed. | |
Protected Attributes inherited from chrono::sensor::ChFilterVisualize | |
| std::unique_ptr< GLFWwindow, DestroyglfwWin > | m_window |
| pointer to the window | |
| unsigned int | m_gl_tex_id = 0 |
| reference data for the GL context and texture | |
| bool | m_window_disabled = false |
| for checking if window is not allowed on sysmtem (e.g. headless rendering) | |
| int | m_w |
| width of the window | |
| int | m_h |
| height of the window | |
Static Protected Attributes inherited from chrono::sensor::ChFilterVisualize | |
| static int | s_windowCount = 0 |
| keeps track of the window count | |
Constructor & Destructor Documentation
◆ ChFilterVisualizePointCloud()
| CH_SENSOR_API chrono::sensor::ChFilterVisualizePointCloud::ChFilterVisualizePointCloud | ( | int | w, |
| int | h, | ||
| float | zoom, | ||
| std::string | name = {} |
||
| ) |
Class constructor.
- Parameters
-
w Width of the window to create h Height of the window to create zoom Value to multiply by the default box in which points are viewed name String name of the filter
Member Function Documentation
◆ Apply()
|
virtual |
Apply function.
Visualizes data as an image.
- Parameters
-
pSensor A pointer to the sensor on which the filter is attached. bufferInOut A buffer that is passed into the filter.
Reimplemented from chrono::sensor::ChFilterVisualize.
◆ Initialize()
|
inlinevirtual |
Initializes all data needed by the filter access apply function.
- Parameters
-
pSensor A pointer to the sensor.
Reimplemented from chrono::sensor::ChFilterVisualize.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterVisualizePointCloud.h
- /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterVisualizePointCloud.cpp
Public Member Functions inherited from