Open3D (C++ API)
Public Types | Public Member Functions | Data Fields
open3d::visualization::RenderOption Class Reference

#include <RenderOption.h>

Inheritance diagram for open3d::visualization::RenderOption:
open3d::utility::IJsonConvertible open3d::visualization::RenderOptionWithEditing

Public Types

enum  TextureInterpolationOption { TextureInterpolationOption::Nearest = 0, TextureInterpolationOption::Linear = 1 }
 
enum  PointColorOption {
  PointColorOption::Default = 0, PointColorOption::Color = 1, PointColorOption::XCoordinate = 2, PointColorOption::YCoordinate = 3,
  PointColorOption::ZCoordinate = 4, PointColorOption::Normal = 9
}
 
enum  MeshShadeOption { MeshShadeOption::FlatShade = 0, MeshShadeOption::SmoothShade = 1 }
 
enum  MeshColorOption {
  MeshColorOption::Default = 0, MeshColorOption::Color = 1, MeshColorOption::XCoordinate = 2, MeshColorOption::YCoordinate = 3,
  MeshColorOption::ZCoordinate = 4, MeshColorOption::Normal = 9
}
 
enum  ImageStretchOption { ImageStretchOption::OriginalSize = 0, ImageStretchOption::StretchKeepRatio = 1, ImageStretchOption::StretchWithWindow = 2 }
 

Public Member Functions

 RenderOption ()
 
 ~RenderOption () override
 
bool ConvertToJsonValue (Json::Value &value) const override
 
bool ConvertFromJsonValue (const Json::Value &value) override
 
void ToggleLightOn ()
 
void ToggleInterpolationOption ()
 
void ChangePointSize (double change)
 
void ChangeLineWidth (double change)
 
void TogglePointShowNormal ()
 
void ToggleShadingOption ()
 
void ToggleMeshShowBackFace ()
 
void ToggleMeshShowWireframe ()
 
void ToggleImageStretchOption ()
 
- Public Member Functions inherited from open3d::utility::IJsonConvertible
virtual ~IJsonConvertible ()
 

Data Fields

const double POINT_SIZE_MAX = 25.0
 
const double POINT_SIZE_MIN = 1.0
 
const double POINT_SIZE_STEP = 1.0
 
const double POINT_SIZE_DEFAULT = 5.0
 
const double LINE_WIDTH_MAX = 10.0
 
const double LINE_WIDTH_MIN = 1.0
 
const double LINE_WIDTH_STEP = 1.0
 
const double LINE_WIDTH_DEFAULT = 1.0
 
Eigen::Vector3d background_color_ = Eigen::Vector3d::Ones()
 
TextureInterpolationOption interpolation_option_
 
bool light_on_ = true
 
Eigen::Vector3d light_position_relative_ [4]
 
Eigen::Vector3d light_color_ [4]
 
Eigen::Vector3d light_ambient_color_ = Eigen::Vector3d::Zero()
 
double light_diffuse_power_ [4]
 
double light_specular_power_ [4]
 
double light_specular_shininess_ [4]
 
double point_size_ = POINT_SIZE_DEFAULT
 
PointColorOption point_color_option_ = PointColorOption::Default
 
bool point_show_normal_ = false
 
MeshShadeOption mesh_shade_option_ = MeshShadeOption::FlatShade
 
MeshColorOption mesh_color_option_ = MeshColorOption::Color
 
bool mesh_show_back_face_ = false
 
bool mesh_show_wireframe_ = false
 
Eigen::Vector3d default_mesh_color_ = Eigen::Vector3d(0.7, 0.7, 0.7)
 
double line_width_ = LINE_WIDTH_DEFAULT
 
ImageStretchOption image_stretch_option_ = ImageStretchOption::OriginalSize
 
int image_max_depth_ = 3000
 
bool show_coordinate_frame_ = false
 

Additional Inherited Members

- Static Public Member Functions inherited from open3d::utility::IJsonConvertible
static bool EigenVector3dFromJsonArray (Eigen::Vector3d &vec, const Json::Value &value)
 
static bool EigenVector3dToJsonArray (const Eigen::Vector3d &vec, Json::Value &value)
 
static bool EigenVector4dFromJsonArray (Eigen::Vector4d &vec, const Json::Value &value)
 
static bool EigenVector4dToJsonArray (const Eigen::Vector4d &vec, Json::Value &value)
 
static bool EigenMatrix3dFromJsonArray (Eigen::Matrix3d &mat, const Json::Value &value)
 
static bool EigenMatrix3dToJsonArray (const Eigen::Matrix3d &mat, Json::Value &value)
 
static bool EigenMatrix4dFromJsonArray (Eigen::Matrix4d &mat, const Json::Value &value)
 
static bool EigenMatrix4dToJsonArray (const Eigen::Matrix4d &mat, Json::Value &value)
 
static bool EigenMatrix4dFromJsonArray (Eigen::Matrix4d_u &mat, const Json::Value &value)
 
static bool EigenMatrix4dToJsonArray (const Eigen::Matrix4d_u &mat, Json::Value &value)
 
static bool EigenMatrix6dFromJsonArray (Eigen::Matrix6d &mat, const Json::Value &value)
 
static bool EigenMatrix6dToJsonArray (const Eigen::Matrix6d &mat, Json::Value &value)
 
static bool EigenMatrix6dFromJsonArray (Eigen::Matrix6d_u &mat, const Json::Value &value)
 
static bool EigenMatrix6dToJsonArray (const Eigen::Matrix6d_u &mat, Json::Value &value)
 

Member Enumeration Documentation

◆ ImageStretchOption

Enumerator
OriginalSize 
StretchKeepRatio 
StretchWithWindow 

◆ MeshColorOption

Enumerator
Default 
Color 
XCoordinate 
YCoordinate 
ZCoordinate 
Normal 

◆ MeshShadeOption

Enumerator
FlatShade 
SmoothShade 

◆ PointColorOption

Enumerator
Default 
Color 
XCoordinate 
YCoordinate 
ZCoordinate 
Normal 

◆ TextureInterpolationOption

Enumerator
Nearest 
Linear 

Constructor & Destructor Documentation

◆ RenderOption()

open3d::visualization::RenderOption::RenderOption ( )
inline

◆ ~RenderOption()

open3d::visualization::RenderOption::~RenderOption ( )
inlineoverride

Member Function Documentation

◆ ChangeLineWidth()

void open3d::visualization::RenderOption::ChangeLineWidth ( double  change)
inline

◆ ChangePointSize()

void open3d::visualization::RenderOption::ChangePointSize ( double  change)
inline

◆ ConvertFromJsonValue()

bool open3d::visualization::RenderOption::ConvertFromJsonValue ( const Json::Value &  value)
overridevirtual

◆ ConvertToJsonValue()

bool open3d::visualization::RenderOption::ConvertToJsonValue ( Json::Value &  value) const
overridevirtual

◆ ToggleImageStretchOption()

void open3d::visualization::RenderOption::ToggleImageStretchOption ( )
inline

◆ ToggleInterpolationOption()

void open3d::visualization::RenderOption::ToggleInterpolationOption ( )
inline

◆ ToggleLightOn()

void open3d::visualization::RenderOption::ToggleLightOn ( )
inline

◆ ToggleMeshShowBackFace()

void open3d::visualization::RenderOption::ToggleMeshShowBackFace ( )
inline

◆ ToggleMeshShowWireframe()

void open3d::visualization::RenderOption::ToggleMeshShowWireframe ( )
inline

◆ TogglePointShowNormal()

void open3d::visualization::RenderOption::TogglePointShowNormal ( )
inline

◆ ToggleShadingOption()

void open3d::visualization::RenderOption::ToggleShadingOption ( )
inline

Field Documentation

◆ background_color_

Eigen::Vector3d open3d::visualization::RenderOption::background_color_ = Eigen::Vector3d::Ones()

◆ default_mesh_color_

Eigen::Vector3d open3d::visualization::RenderOption::default_mesh_color_ = Eigen::Vector3d(0.7, 0.7, 0.7)

◆ image_max_depth_

int open3d::visualization::RenderOption::image_max_depth_ = 3000

◆ image_stretch_option_

ImageStretchOption open3d::visualization::RenderOption::image_stretch_option_ = ImageStretchOption::OriginalSize

◆ interpolation_option_

TextureInterpolationOption open3d::visualization::RenderOption::interpolation_option_

◆ light_ambient_color_

Eigen::Vector3d open3d::visualization::RenderOption::light_ambient_color_ = Eigen::Vector3d::Zero()

◆ light_color_

Eigen::Vector3d open3d::visualization::RenderOption::light_color_[4]

◆ light_diffuse_power_

double open3d::visualization::RenderOption::light_diffuse_power_[4]

◆ light_on_

bool open3d::visualization::RenderOption::light_on_ = true

◆ light_position_relative_

Eigen::Vector3d open3d::visualization::RenderOption::light_position_relative_[4]

◆ light_specular_power_

double open3d::visualization::RenderOption::light_specular_power_[4]

◆ light_specular_shininess_

double open3d::visualization::RenderOption::light_specular_shininess_[4]

◆ line_width_

double open3d::visualization::RenderOption::line_width_ = LINE_WIDTH_DEFAULT

◆ LINE_WIDTH_DEFAULT

const double open3d::visualization::RenderOption::LINE_WIDTH_DEFAULT = 1.0

◆ LINE_WIDTH_MAX

const double open3d::visualization::RenderOption::LINE_WIDTH_MAX = 10.0

◆ LINE_WIDTH_MIN

const double open3d::visualization::RenderOption::LINE_WIDTH_MIN = 1.0

◆ LINE_WIDTH_STEP

const double open3d::visualization::RenderOption::LINE_WIDTH_STEP = 1.0

◆ mesh_color_option_

MeshColorOption open3d::visualization::RenderOption::mesh_color_option_ = MeshColorOption::Color

◆ mesh_shade_option_

MeshShadeOption open3d::visualization::RenderOption::mesh_shade_option_ = MeshShadeOption::FlatShade

◆ mesh_show_back_face_

bool open3d::visualization::RenderOption::mesh_show_back_face_ = false

◆ mesh_show_wireframe_

bool open3d::visualization::RenderOption::mesh_show_wireframe_ = false

◆ point_color_option_

PointColorOption open3d::visualization::RenderOption::point_color_option_ = PointColorOption::Default

◆ point_show_normal_

bool open3d::visualization::RenderOption::point_show_normal_ = false

◆ point_size_

double open3d::visualization::RenderOption::point_size_ = POINT_SIZE_DEFAULT

◆ POINT_SIZE_DEFAULT

const double open3d::visualization::RenderOption::POINT_SIZE_DEFAULT = 5.0

◆ POINT_SIZE_MAX

const double open3d::visualization::RenderOption::POINT_SIZE_MAX = 25.0

◆ POINT_SIZE_MIN

const double open3d::visualization::RenderOption::POINT_SIZE_MIN = 1.0

◆ POINT_SIZE_STEP

const double open3d::visualization::RenderOption::POINT_SIZE_STEP = 1.0

◆ show_coordinate_frame_

bool open3d::visualization::RenderOption::show_coordinate_frame_ = false

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