struct mrpt::maps::CPointsMap::TRenderOptions
Overview
Rendering options, used in getAs3DObject()
#include <mrpt/maps/CPointsMap.h> struct TRenderOptions: public mrpt::config::CLoadableOptions { // fields float point_size {1.0f}; mrpt::img::TColorf color {.0f, .0f, 1.0f}; mrpt::img::TColormap colormap {mrpt::img::cmNONE}; bool hide_back_facing {false}; float back_facing_max_angle_normals_deg {90.0f}; float back_facing_max_angle_view_deg {120.0f}; // methods virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section); virtual void dumpToTextStream(std::ostream& out) const; void writeToStream(mrpt::serialization::CArchive& out) const; void readFromStream(mrpt::serialization::CArchive& in); };
Inherited Members
public: // methods CLoadableOptions& operator = (const CLoadableOptions&); CLoadableOptions& operator = (CLoadableOptions&&); virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section) = 0; void loadFromConfigFileName(const std::string& config_file, const std::string& section); virtual void saveToConfigFile(mrpt::config::CConfigFileBase& target, const std::string& section) const; void saveToConfigFileName(const std::string& config_file, const std::string& section) const; void dumpToConsole() const; virtual void dumpToTextStream(std::ostream& out) const;
Fields
mrpt::img::TColorf color {.0f, .0f, 1.0f}
Color of points.
Superseded by colormap if the latter is set.
mrpt::img::TColormap colormap {mrpt::img::cmNONE}
Colormap for points (index is “z” coordinates)
bool hide_back_facing {false}
Hide points seen from behind, if the map has per-point directions.
See also:
getPointDirectionsForRendering()
float back_facing_max_angle_normals_deg {90.0f}
Max angle (degrees) between a point direction and the direction towards the camera for the point to be visible, when directions are normals.
See also:
mrpt::viz::VisualObjectParams_Points::setBackFacingMaxAngle()
float back_facing_max_angle_view_deg {120.0f}
Like back_facing_max_angle_normals_deg, for view vectors (directions towards the sensor), which are only a rough proxy of the surface side.
Methods
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase& source, const std::string& section)
This method load the options from a “.ini”-like file or memory-stored string list.
Only those parameters found in the given “section” and having the same name that the variable are loaded. Those not found in the file will stay with their previous values (usually the default values loaded at initialization). An example of an “.ini” file:
[section] resolution = 0.10 // blah blah... modeSelection = 1 // 0=blah, 1=blah,...
See also:
loadFromConfigFileName, saveToConfigFile
virtual void dumpToTextStream(std::ostream& out) const
This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream.
The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.
void writeToStream(mrpt::serialization::CArchive& out) const
Binary dump to stream - used in derived classes’ serialization.
void readFromStream(mrpt::serialization::CArchive& in)
Binary dump to stream - used in derived classes’ serialization.