1 | <?php |
||
41 | class GeometryComponent extends ComponentAbstract implements GeometryInterface |
||
42 | { |
||
43 | |||
44 | /** |
||
45 | * Initialize Component |
||
46 | * |
||
47 | * {@inheritdoc} |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | 40 | public function initializeComponent(): bool |
|
56 | |||
57 | /** |
||
58 | * Return DOM attribute contents |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | 3 | public function getDomAttributeString(): string |
|
68 | |||
69 | /** |
||
70 | * Set geometry primitive |
||
71 | * |
||
72 | * One of box, circle, cone, cylinder, plane, ring, sphere, torus, torusKnot. |
||
73 | * |
||
74 | * @param string $primitive |
||
75 | * @throws InvalidComponentArgumentException |
||
76 | * @return void |
||
77 | */ |
||
78 | 38 | public function primitive(string $primitive) |
|
89 | |||
90 | /** |
||
91 | * translate |
||
92 | * |
||
93 | * {@inheritdoc} |
||
94 | * |
||
95 | * @param int|float $x |
||
96 | * @param int|float $y |
||
97 | * @param int|float $z |
||
98 | * @return void |
||
99 | */ |
||
100 | 7 | public function translate(float $x = 0, float $y = 0, float $z = 0) |
|
104 | |||
105 | /** |
||
106 | * Set Buffer |
||
107 | * |
||
108 | * {@inheritdoc} |
||
109 | * |
||
110 | * @param bool $buffer |
||
111 | * @return void |
||
112 | */ |
||
113 | 1 | public function buffer(bool $buffer = true) |
|
117 | |||
118 | /** |
||
119 | * skipCache |
||
120 | * |
||
121 | * {@inheritdoc} |
||
122 | * |
||
123 | * @param bool $skipCache |
||
124 | * @return void |
||
125 | */ |
||
126 | 1 | public function skipCache(bool $skipCache = false) |
|
130 | } |
||
131 |