ViewerConfig
- class ViewerConfig[source]
Bases:
Config
The class representation for the viewer.json of the viewer. The viewer.json contains all the settings about the general (default) appearance of the scene objects.
- Parameters:
- pointcolor
compas.colors.Color
The default color of the points.
- linecolor
compas.colors.Color
The default color of the lines.
- surfacecolor
compas.colors.Color
The default color of the surfaces.
- show_pointsbool
The default setting for showing the points.
- show_linesbool
The default setting for showing the lines.
- show_facesbool
The default setting for showing the faces.
- linewidthfloat
The default width of the lines.
- pointsizefloat
The default size of the points.
- opacityfloat
The default opacity of the objects.
- hide_coplanaredgesbool
The default setting for hiding the coplanar edges.
- use_vertexcolorsbool
The default setting for using the vertex colors.
- framesizetuple[float, int, float, int]
The default size of the frame.
- show_framezbool
The default setting for showing the z-axis of the frame.
- vectorsizefloat
The default size of the vectors.
- pointcolor
Methods
Load the default configuration.
Construct an object of this type from a JSON file.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.