Source code for cam.properties.info_props

"""Fabex 'info_props.py'

'CAM Info Properties'
"""

from datetime import timedelta

import bpy
from bpy.props import (
    StringProperty,
    FloatProperty,
)
from bpy.types import PropertyGroup

from ..constants import (
    PRECISION,
    CHIPLOAD_PRECISION,
    MAX_OPERATION_TIME,
)
from ..utilities.operation_utils import update_operation


[docs] class CAM_INFO_Properties(PropertyGroup):
[docs] warnings: StringProperty( name="Warnings", description="Warnings", default="", update=update_operation, )
[docs] chipload: FloatProperty( name="Chipload", description="Calculated chipload", default=0.0, unit="LENGTH", precision=CHIPLOAD_PRECISION, )
[docs] chipload_per_tooth: StringProperty( name="Chipload per Tooth", description="The chipload divided by the number of teeth", default="", )
[docs] duration: FloatProperty( name="Estimated Time", default=0.01, min=0.0000, max=MAX_OPERATION_TIME, precision=PRECISION, unit="TIME", )