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

get_background_color()

Get background RGB color

get_color_map()

Get the color map as a vector of 768 values (256*RGB) (using std::vector for Python compatibility via SWIG)

get_diffuse_color()

Get the RGB diffuse color of the object

get_emissive_color()

Get the RGB emissive color

get_menu_display()

Get the menu display state

get_representation()

Get the current representation of the object (wireframe, surface or surface_with_edges)

get_shininess()

Set the surface shininess of the object

get_specular_color()

Get the RGB specular color

get_transparency()

Get the transparency (0-1)

get_viewport_size()

Get the size of the viewport

get_x3d_stats()
set_ambient_intensity()

Set the ambient lighting intensity

set_background_color()

Set background RGB color

set_color_map(colormap)
set_diffuse_color()

Set the RGB color of the object

set_emissive_color()

Set the RGB emissive color

set_menu_display()

Toggle menu option

set_representation()

Set representation of object (wireframe, surface or surface_with_edges)

set_shininess()

Set the surface shininess of the object

set_specular_color()

Set the RGB specular color

set_transparency()

Set the transparency (0-1)

set_x3d_stats()

Turn X3D ‘statistics’ window on/off

thisown

The membership flag