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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|