libcarna.base

exception libcarna.base.AssertionFailure

Bases: Exception

class libcarna.base.Camera

Bases: Spatial

property orthogonal_projection_hint
property projection
property view_transform
class libcarna.base.Color

Bases: pybind11_object

BLACK = <libcarna.base.Color object>
BLACK_NO_ALPHA = <libcarna.base.Color object>
BLUE = <libcarna.base.Color object>
BLUE_NO_ALPHA = <libcarna.base.Color object>
GREEN = <libcarna.base.Color object>
GREEN_NO_ALPHA = <libcarna.base.Color object>
RED = <libcarna.base.Color object>
RED_NO_ALPHA = <libcarna.base.Color object>
WHITE = <libcarna.base.Color object>
WHITE_NO_ALPHA = <libcarna.base.Color object>
property a
property b
property g
property r
toarray(self: libcarna.base.Color) numpy.ndarray[numpy.float32[4, 1]]
class libcarna.base.ColorMap

Bases: pybind11_object

DEFAULT_MAXIMUM_INTENSITY = 1.0
DEFAULT_MINIMUM_INTENSITY = 0.0
DEFAULT_RESOLUTION = 65536
clear(self: libcarna.base.ColorMap) None
property color_list
property maximum_intensity
property minimum_intensity
set(self: libcarna.base.ColorMap, other: libcarna.base.ColorMap) libcarna.base.ColorMap
write_linear_segment(self: libcarna.base.ColorMap, intensity_first: float, intensity_last: float, color_first: libcarna.base.Color, color_last: libcarna.base.Color) libcarna.base.ColorMap
write_linear_spline(self: libcarna.base.ColorMap, colors: list[libcarna.base.Color]) libcarna.base.ColorMap
class libcarna.base.FrameRenderer

Bases: pybind11_object

append_stage(self: libcarna.base.FrameRenderer, stage: libcarna.base.RenderStage) None
property gl_context
property height
render(self: libcarna.base.FrameRenderer, camera: libcarna.base.Camera, root: libcarna.base.Node = None) None
reshape(*args, **kwargs)

Overloaded function.

  1. reshape(self: libcarna.base.FrameRenderer, width: int, height: int) -> None

  2. reshape(self: libcarna.base.FrameRenderer, width: int, height: int, fit_square: bool = False) -> None

set_background_color(self: libcarna.base.FrameRenderer, color: LibCarna::base::Color) None
property width
class libcarna.base.GLContext

Bases: pybind11_object

Wraps and represents an OpenGL context.

class libcarna.base.Geometry

Bases: Spatial

clear_features(self: libcarna.base.Geometry) None
property features_count
property geometry_type
has_feature(*args, **kwargs)

Overloaded function.

  1. has_feature(self: libcarna.base.Geometry, arg0: int) -> bool

  2. has_feature(self: libcarna.base.Geometry, arg0: libcarna.base.GeometryFeature) -> bool

put_feature(self: libcarna.base.Geometry, arg0: int, arg1: libcarna.base.GeometryFeature) None
remove_feature(*args, **kwargs)

Overloaded function.

  1. remove_feature(self: libcarna.base.Geometry, arg0: int) -> None

  2. remove_feature(self: libcarna.base.Geometry, arg0: libcarna.base.GeometryFeature) -> None

class libcarna.base.GeometryFeature

Bases: pybind11_object

exception libcarna.base.LibCarnaException

Bases: Exception

class libcarna.base.Material

Bases: GeometryFeature

clear_parameters(self: libcarna.base.Material) None
has_parameter(self: libcarna.base.Material, arg0: str) bool
property line_width
remove_parameter(self: libcarna.base.Material, arg0: str) None
class libcarna.base.MeshFactory

Bases: pybind11_object

static create_ball(radius: float, degree: int = 4) libcarna.base.GeometryFeature
static create_box(width: float, height: float, depth: float) libcarna.base.GeometryFeature
static create_line_strip(points: list[numpy.ndarray[numpy.float32[3, 1]]]) libcarna.base.GeometryFeature
static create_point() libcarna.base.GeometryFeature
class libcarna.base.MeshRenderingStage

Bases: RenderStage

DEFAULT_ROLE_MATERIAL = 1
DEFAULT_ROLE_MESH = 0
class libcarna.base.Node

Bases: Spatial

attach_child(self: libcarna.base.Node, arg0: libcarna.base.Spatial) None
children(self: libcarna.base.Node) int
class libcarna.base.RenderStage

Bases: pybind11_object

property enabled
property renderer
class libcarna.base.Spatial

Bases: pybind11_object

detach_from_parent(self: libcarna.base.Spatial) None
property has_parent
property is_movable
property local_transform
property tag
update_world_transform(self: libcarna.base.Spatial) None
property world_transform
class libcarna.base.Surface

Bases: pybind11_object

begin(self: libcarna.base.Surface) None
end(self: libcarna.base.Surface) numpy.ndarray[numpy.uint8]
property height
property width
libcarna.base.logging(enabled: bool = True) None