bcf.v2.model.visinfo

Module Contents

class bcf.v2.model.visinfo.BitmapFormat(*args, **kwds)

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

    >>> Color.RED
    <Color.RED: 1>
    
  • value lookup:

    >>> Color(1)
    <Color.RED: 1>
    
  • name lookup:

    >>> Color['RED']
    <Color.RED: 1>
    

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

JPG = 'JPG'
PNG = 'PNG'
class bcf.v2.model.visinfo.ClippingPlane
direction: Direction
location: Point
class bcf.v2.model.visinfo.Component
authoring_tool_id: str | None = None
ifc_guid: str | None = None
originating_system: str | None = None
class bcf.v2.model.visinfo.ComponentColoring
color: List[ComponentColoringColor] = []
class bcf.v2.model.visinfo.ComponentColoringColor
class Meta
global_type = False
color: str | None = None
component: List[Component] = []
class bcf.v2.model.visinfo.ComponentSelection
component: List[Component] = []
class bcf.v2.model.visinfo.ComponentVisibility
default_visibility: bool | None = None
exceptions: ComponentVisibilityExceptions | None = None
class bcf.v2.model.visinfo.ComponentVisibilityExceptions
class Meta
global_type = False
component: List[Component] = []
class bcf.v2.model.visinfo.Components
coloring: ComponentColoring | None = None
selection: ComponentSelection | None = None
view_setup_hints: ViewSetupHints | None = None
visibility: ComponentVisibility
class bcf.v2.model.visinfo.Direction
x: float
y: float
z: float
class bcf.v2.model.visinfo.Line
end_point: Point
start_point: Point
class bcf.v2.model.visinfo.OrthogonalCamera
Attributes

camera_view_point: camera_direction: camera_up_vector: view_to_world_scale: view’s visible size in meters

camera_direction: Direction
camera_up_vector: Direction
camera_view_point: Point
view_to_world_scale: float
class bcf.v2.model.visinfo.PerspectiveCamera
Attributes

camera_view_point: camera_direction: camera_up_vector: field_of_view: It is currently limited to a value between 45 and

60 degrees. This limitation will be dropped in the next release and viewers should be expect values outside this range in current implementations.

camera_direction: Direction
camera_up_vector: Direction
camera_view_point: Point
field_of_view: float
class bcf.v2.model.visinfo.Point
x: float
y: float
z: float
class bcf.v2.model.visinfo.ViewSetupHints
openings_visible: bool | None = None
space_boundaries_visible: bool | None = None
spaces_visible: bool | None = None
class bcf.v2.model.visinfo.VisualizationInfo

VisualizationInfo documentation.

bitmap: List[VisualizationInfoBitmap] = []
clipping_planes: VisualizationInfoClippingPlanes | None = None
components: Components | None = None
guid: str
lines: VisualizationInfoLines | None = None
orthogonal_camera: OrthogonalCamera | None = None
perspective_camera: PerspectiveCamera | None = None
class bcf.v2.model.visinfo.VisualizationInfoBitmap
class Meta
global_type = False
bitmap: BitmapFormat
height: float
location: Point
normal: Direction
reference: str
up: Direction
class bcf.v2.model.visinfo.VisualizationInfoClippingPlanes
class Meta
global_type = False
clipping_plane: List[ClippingPlane] = []
class bcf.v2.model.visinfo.VisualizationInfoLines
class Meta
global_type = False
line: List[Line] = []