RendererConfig
- class RendererConfig[source]
Bases:
Config
The class representation for the renderer.json of the class Renderer. The renderer.json contains all the settings about the renderer: background color, selection color, …
- Parameters:
- show_gridbool
Whether to show the grid or not.
- gridsizetuple[float, int, float, int]
The size of the grid.
- show_gridzbool
Whether to show the z-grid or not.
- viewmodeLiteral[“front”, “right”, “top”, “perspective”]
The viewmode of the camera.
- rendermodeLiteral[“wireframe”, “shaded”, “ghosted”, “lighted”, “instance”]
The rendermode of the renderer.
- backgroundcolorColor
The background color of the renderer.
- ghostopacityfloat
The opacity of the ghost mode.
- camera
compas_viewer.configurations.renderer_config.CameraConfigType
The camera configuration of the renderer.
- selector
compas_viewer.configurations.renderer_config.SelectorConfigType
The selector configuration of the renderer.
- Attributes:
- CameraConfigType
compas_viewer.configurations.renderer_config.CameraConfigType
The type template for the the camera: {fov: float, near: float, far: float, …, pan_delta: float}
- SelectorConfigType
compas_viewer.configurations.renderer_config.SelectorConfigType
The type template for the the selector: {enable_selector: bool, selectioncolor: Color}
- CameraConfigType
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.