X3DOMParameters¶
-
class
dolfin.cpp.io.
X3DOMParameters
¶ Bases:
object
Class data to store
X3DOM
view parameters.Constructor (with default parameter settings)
-
Representation_surface
= 0¶
-
Representation_surface_with_edges
= 1¶
-
Representation_wireframe
= 2¶
-
get_ambient_intensity
()¶ Get the ambient lighting intensity.
Return type: double
-
get_background_color
()¶ Get background RGB color.
Return type: std::array< double, 3 >
-
get_color_map
()¶ Get the color map as a vector of 768 values (256*RGB) (using std::vector for Python compatibility via SWIG)
Return type: std::vector< double >
-
get_diffuse_color
()¶ Get the RGB diffuse color of the object.
Return type: std::array< double, 3 >
-
get_emissive_color
()¶ Get the RGB emissive color.
Return type: std::array< double, 3 >
Get the menu display state.
Return type: bool
-
get_representation
()¶ Get the current representation of the object (wireframe, surface or surface_with_edges)
Return type: Representation
-
get_shininess
()¶ Set
the surface shininess of the object.Return type: double
-
get_specular_color
()¶ Get the RGB specular color.
Return type: std::array< double, 3 >
-
get_transparency
()¶ Get the transparency (0-1)
Return type: double
-
get_viewport_size
()¶ Get the size of the viewport.
Return type: std::array< double, 2 >
-
set_ambient_intensity
()¶ Set
the ambient lighting intensity.Parameters: intensity (double) – Return type: void
-
set_background_color
()¶ Set
background RGB color.Parameters: double, 3 > rgb (std::array<) – Return type: void
-
set_color_map
(colormap)¶
-
set_diffuse_color
()¶ Set
the RGB color of the object.Parameters: double, 3 > rgb (std::array<) – Return type: void
-
set_emissive_color
()¶ Set
the RGB emissive color.Parameters: double, 3 > rgb (std::array<) – Return type: void
Toggle menu option.
Parameters: show (bool) – Return type: void
-
set_representation
()¶ Set
representation of object (wireframe, surface or surface_with_edges)Parameters: representation (Representation) – Return type: void
-
set_shininess
()¶ Set
the surface shininess of the object.Parameters: shininess (double) – Return type: void
-
set_specular_color
()¶ Set
the RGB specular color.Parameters: double, 3 > rgb (std::array<) – Return type: void
-
set_transparency
()¶ Set
the transparency (0-1)Parameters: transparency (double) – Return type: void
-
thisown
¶ The membership flag
-