Skip to content

Camera Data

camera_data

Source code in src/cadwork/camera_data.pyi
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
class camera_data:

    def get_position(self) -> point_3d:
        """get position

        Returns:
            point_3d
        """

    def set_position(self, position: point_3d) -> None:
        """set position

        Parameters:
            position: position

        Returns:
            None
        """

    def get_target(self) -> point_3d:
        """get target

        Returns:
            point_3d
        """

    def set_target(self, target: point_3d) -> None:
        """set target

        Parameters:
            target: target

        Returns:
            None
        """

    def get_up_vector(self) -> point_3d:
        """get up vector

        Returns:
            point_3d
        """

    def set_up_vector(self, up_vector: point_3d) -> None:
        """set up vector

        Parameters:
            up_vector: up_vector

        Returns:
            None
        """

    def get_projection_type(self) -> projection_type:
        """get projection type

        Returns:
            projection_type
        """

    def set_projection_type(self, projection_type: projection_type) -> None:
        """set projection type

        Parameters:
            projection_type: projection_type

        Returns:
            None
        """

    def get_field_width(self) -> float:
        """get field width

        Returns:
            float
        """

    def set_field_width(self, field_width: float) -> None:
        """set field width

        Parameters:
            field_width: field_width

        Returns:
            None
        """

    def get_field_height(self) -> float:
        """get field height

        Returns:
            float
        """

    def set_field_height(self, field_height: float) -> None:
        """set field height

        Parameters:
            field_height: field_height

        Returns:
            None
        """

    def get_field_of_view(self) -> float:
        """get field of view

        Returns:
            float
        """

    def set_field_of_view(self, field_of_view: float) -> None:
        """set field of view

        Parameters:
            field_of_view: field_of_view

        Returns:
            None
        """

get_field_height()

get field height

Returns:

Type Description
float

float

Source code in src/cadwork/camera_data.pyi
91
92
93
94
95
96
def get_field_height(self) -> float:
    """get field height

    Returns:
        float
    """

get_field_of_view()

get field of view

Returns:

Type Description
float

float

Source code in src/cadwork/camera_data.pyi
108
109
110
111
112
113
def get_field_of_view(self) -> float:
    """get field of view

    Returns:
        float
    """

get_field_width()

get field width

Returns:

Type Description
float

float

Source code in src/cadwork/camera_data.pyi
74
75
76
77
78
79
def get_field_width(self) -> float:
    """get field width

    Returns:
        float
    """

get_position()

get position

Returns:

Type Description
point_3d

point_3d

Source code in src/cadwork/camera_data.pyi
 6
 7
 8
 9
10
11
def get_position(self) -> point_3d:
    """get position

    Returns:
        point_3d
    """

get_projection_type()

get projection type

Returns:

Type Description
projection_type

projection_type

Source code in src/cadwork/camera_data.pyi
57
58
59
60
61
62
def get_projection_type(self) -> projection_type:
    """get projection type

    Returns:
        projection_type
    """

get_target()

get target

Returns:

Type Description
point_3d

point_3d

Source code in src/cadwork/camera_data.pyi
23
24
25
26
27
28
def get_target(self) -> point_3d:
    """get target

    Returns:
        point_3d
    """

get_up_vector()

get up vector

Returns:

Type Description
point_3d

point_3d

Source code in src/cadwork/camera_data.pyi
40
41
42
43
44
45
def get_up_vector(self) -> point_3d:
    """get up vector

    Returns:
        point_3d
    """

set_field_height(field_height)

set field height

Parameters:

Name Type Description Default
field_height float

field_height

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
 98
 99
100
101
102
103
104
105
106
def set_field_height(self, field_height: float) -> None:
    """set field height

    Parameters:
        field_height: field_height

    Returns:
        None
    """

set_field_of_view(field_of_view)

set field of view

Parameters:

Name Type Description Default
field_of_view float

field_of_view

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
115
116
117
118
119
120
121
122
123
def set_field_of_view(self, field_of_view: float) -> None:
    """set field of view

    Parameters:
        field_of_view: field_of_view

    Returns:
        None
    """

set_field_width(field_width)

set field width

Parameters:

Name Type Description Default
field_width float

field_width

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
81
82
83
84
85
86
87
88
89
def set_field_width(self, field_width: float) -> None:
    """set field width

    Parameters:
        field_width: field_width

    Returns:
        None
    """

set_position(position)

set position

Parameters:

Name Type Description Default
position point_3d

position

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
13
14
15
16
17
18
19
20
21
def set_position(self, position: point_3d) -> None:
    """set position

    Parameters:
        position: position

    Returns:
        None
    """

set_projection_type(projection_type)

set projection type

Parameters:

Name Type Description Default
projection_type projection_type

projection_type

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
64
65
66
67
68
69
70
71
72
def set_projection_type(self, projection_type: projection_type) -> None:
    """set projection type

    Parameters:
        projection_type: projection_type

    Returns:
        None
    """

set_target(target)

set target

Parameters:

Name Type Description Default
target point_3d

target

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
30
31
32
33
34
35
36
37
38
def set_target(self, target: point_3d) -> None:
    """set target

    Parameters:
        target: target

    Returns:
        None
    """

set_up_vector(up_vector)

set up vector

Parameters:

Name Type Description Default
up_vector point_3d

up_vector

required

Returns:

Type Description
None

None

Source code in src/cadwork/camera_data.pyi
47
48
49
50
51
52
53
54
55
def set_up_vector(self, up_vector: point_3d) -> None:
    """set up vector

    Parameters:
        up_vector: up_vector

    Returns:
        None
    """

projection_type

Bases: IntEnum

projection type

Examples:

>>> cadwork.projection_type.Perspective
Perspective
Source code in src/cadwork/projection_type.pyi
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
@unique
class projection_type(IntEnum):
    """projection type

    Examples:
        >>> cadwork.projection_type.Perspective
        Perspective
    """
    Perspective = 1
    """"""
    Orthographic = 2
    """"""

    def __int__(self) -> int:
        return self.value

Orthographic = 2 class-attribute instance-attribute

Perspective = 1 class-attribute instance-attribute