GL Studio C++ Runtime API
gls_schematic_tee_interconnect.h
Go to the documentation of this file.
1/// \file gls_schematic_tee_interconnect.h
2/// \brief The disti::GlsSchematicTeeInterconnect class.
3///
4/// \par Copyright Information
5///
6/// Copyright (c) 2017 by The DiSTI Corporation.<br>
7/// 12249 Science Drive; Suite 300<br>
8/// Orlando, Florida 32826<br>
9/// USA<br>
10/// <br>
11/// All rights reserved.<br>
12///
13/// This Software contains proprietary trade secrets of DiSTI and may not be
14/// reproduced, in whole or part, in any form, or by any means of electronic,
15/// mechanical, or otherwise, without the written permission of DiSTI. Said
16/// permission may be derived through the purchase of applicable DiSTI product
17/// licenses which detail the distribution rights of this content and any
18/// Derivative Works based on this or other copyrighted DiSTI Software.
19///
20/// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
21/// AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
22/// PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
23/// AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
24/// IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
25/// PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
26///
27/// LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
28/// IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
29/// INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
30/// DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
31/// INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
32/// INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY
33/// OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
34/// EXCEED FIVE DOLLARS (US$5.00).
35///
36/// The aforementioned terms and restrictions are governed by the laws of the
37/// State of Florida and the United States of America.
38
39#ifndef DISTI_INCLUDED_GLS_SCHEMATIC_TEE_INTERCONNECT_H
40#define DISTI_INCLUDED_GLS_SCHEMATIC_TEE_INTERCONNECT_H
41
42#include "glpolygon.h"
45
46/// Provides support for creating DLLs.
47#if( defined( GLSGEN_EXPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLSGEN_IMPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
48 && defined( _MSC_VER )
49# if defined( GLSGEN_EXPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLS_EXPORT_GENERATED )
50# define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT __declspec( dllexport )
51# else
52# define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT __declspec( dllimport )
53# endif
54#else
55# define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT
56#endif
57///////////////////////////////////////////////////////////////////////////////
58
59/// Automatically link the runtime library plugin (on Windows).
60#define LIB_BASE_NAME "gls_schematic_tee_interconnect"
61#include "gls_auto_lib.h"
62#undef LIB_BASE_NAME
63
64namespace disti
65{
66// SetValue enumerations
67enum
68{
69 GLS_SCHEMATICTEEINTERCONNECT_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
70 GLS_SCHEMATICTEEINTERCONNECT_LEFT_LINE_THICKNESS,
71 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_LINE_THICKNESS,
72 GLS_SCHEMATICTEEINTERCONNECT_BASE_LINE_THICKNESS,
73 GLS_SCHEMATICTEEINTERCONNECT_LEFT_INTERCONNECT_TEXTURE_INDEX,
74 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_INTERCONNECT_TEXTURE_INDEX,
75 GLS_SCHEMATICTEEINTERCONNECT_BASE_INTERCONNECT_TEXTURE_INDEX,
76 GLS_SCHEMATICTEEINTERCONNECT_LEFT_INTERCONNECT_TEXTURE_REPEAT_LENGTH,
77 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_INTERCONNECT_TEXTURE_REPEAT_LENGTH,
78 GLS_SCHEMATICTEEINTERCONNECT_BASE_INTERCONNECT_TEXTURE_REPEAT_LENGTH,
79 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_TEXTURE_INDEX,
80 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_TEXTURE_INDEX,
81 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_TEXTURE_INDEX,
82 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_TEXTURE_REPEAT_LENGTH,
83 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_TEXTURE_REPEAT_LENGTH,
84 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_TEXTURE_REPEAT_LENGTH,
85 GLS_SCHEMATICTEEINTERCONNECT_LEFT_SHOW_FLOW,
86 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_SHOW_FLOW,
87 GLS_SCHEMATICTEEINTERCONNECT_BASE_SHOW_FLOW,
88 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_RATE,
89 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_RATE,
90 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_RATE,
91 GLS_SCHEMATICTEEINTERCONNECT_LEFT_SHOW_FLOW_BLINK,
92 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_SHOW_FLOW_BLINK,
93 GLS_SCHEMATICTEEINTERCONNECT_BASE_SHOW_FLOW_BLINK,
94 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_BLINK_RATE,
95 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_BLINK_RATE,
96 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_BLINK_RATE,
97 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_BLINK_START_COLOR,
98 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_BLINK_START_COLOR,
99 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_BLINK_START_COLOR,
100 GLS_SCHEMATICTEEINTERCONNECT_LEFT_FLOW_BLINK_END_COLOR,
101 GLS_SCHEMATICTEEINTERCONNECT_RIGHT_FLOW_BLINK_END_COLOR,
102 GLS_SCHEMATICTEEINTERCONNECT_BASE_FLOW_BLINK_END_COLOR,
103 GLS_SCHEMATICTEEINTERCONNECT_USE_DISPLAY_LIST,
104 GLS_SCHEMATICTEEINTERCONNECT_TOP_VISIBLE,
105 GLS_SCHEMATICTEEINTERCONNECT_TOP_LINE_THICKNESS,
106 GLS_SCHEMATICTEEINTERCONNECT_TOP_INTERCONNECT_TEXTURE_INDEX,
107 GLS_SCHEMATICTEEINTERCONNECT_TOP_INTERCONNECT_TEXTURE_REPEAT_LENGTH,
108 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_TEXTURE_INDEX,
109 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_TEXTURE_REPEAT_LENGTH,
110 GLS_SCHEMATICTEEINTERCONNECT_TOP_SHOW_FLOW,
111 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_RATE,
112 GLS_SCHEMATICTEEINTERCONNECT_TOP_SHOW_FLOW_BLINK,
113 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_BLINK_RATE,
114 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_BLINK_START_COLOR,
115 GLS_SCHEMATICTEEINTERCONNECT_TOP_FLOW_BLINK_END_COLOR
116};
117
118#ifdef GLES
119class GlsGloFileAttribute;
120#endif
121
122/** Runtime implementation of a GlsSchematicTeeInterconnect */
124{
125private:
128
129 void CopyPropertiesInternal( GlsSchematicTeeInterconnect* src );
130
131public:
132 DISTI_DEPRECATED( "This identifier is forbidden by the C++ standard. Use BaseClass instead." )
133 typedef GLPolygon _BaseClass; ///< Deprecated typedef for the base class.
134 typedef GLPolygon BaseClass; ///< Typedef for the base class.
135 friend class GlsSchematicTeeInterconnectEditor;
136
137 /// Create a new GlsSchematicTeeInterconnect.
138 /// \param generateInstance Whether or not to generate an instance name for this object.
140
141 /// Copy constructor
142 /// \param that The object to copy from.
143 /// \param generateNames Whether or not to generate an instance name for this object.
145
146 /** Destructs a GlsSchematicTeeInterconnect object */
148
149 /// \return A pointer to a new GlsSchematicTeeInterconnect object.
151
152 //////////////////////////////////////////////////
153 // Overridden base class methods
154 //////////////////////////////////////////////////
155
159
160#ifndef GLES
163#endif
164
168
170
171 GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT bool Hit( float x, float y, float z, float scale, const Vector& directionVector, Vector* collisionPoint ) DISTI_METHOD_OVERRIDE;
172
174
176
178
179 void Scale( float px, float py, float pz, Vertex* anchor, int handleBar = 0 ) DISTI_METHOD_OVERRIDE
180 {
181 BaseClass::Scale( px, py, pz, anchor, handleBar );
182 SetRebuild();
183 }
184
185 void Rotate( const Vector& orig, float angle, const Vector& axis ) DISTI_METHOD_OVERRIDE
186 {
187 BaseClass::Rotate( orig, angle, axis );
188 SetRebuild();
189 }
190
191 void SetVertices( unsigned int nPoints, Vertex* vertices ) DISTI_METHOD_OVERRIDE
192 {
193 BaseClass::SetVertices( nPoints, vertices );
194 SetRebuild();
195 }
196
197#ifdef GLES
198 /// \copydoc DisplayObject::Parent(DisplayFrame*)
200
201 /// \return The parent display frame of this object
202 DisplayFrame* Parent() const { return DisplayObject::Parent(); }
203#endif
204
206
207 //////////////////////////////////////////////////
208 // GlsSchematicTeeInterconnect specific operations
209 //////////////////////////////////////////////////
210
211 /// Set the thickness of the left side.
212 /// \see GlsSchematicPolyLineInterconnect::SetLineThickness
213 /// \param lineThickness The new thickness value to set.
214 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftLineThickness( const float lineThickness );
215
216 /// \return The thickness of the left side.
217 virtual float GetLeftLineThickness() { return ( _left->GetLineThickness() ); }
218
219 /// Set the thickness of the right side.
220 /// \see GlsSchematicPolyLineInterconnect::SetLineThickness
221 /// \param lineThickness The new thickness value to set.
222 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightLineThickness( const float lineThickness );
223
224 /// \return The thickness of the right side.
225 virtual float GetRightLineThickness() { return ( _right->GetLineThickness() ); }
226
227 /// Set the thickness of the baseline (bottom) side.
228 /// \see GlsSchematicPolyLineInterconnect::SetLineThickness
229 /// \param lineThickness The new thickness value to set.
230 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseLineThickness( const float lineThickness );
231
232 /// \return The thickness of the baseline (bottom) side.
233 virtual float GetBaseLineThickness() { return ( _base->GetLineThickness() ); }
234
235 /// Set the thickness of the top side.
236 /// \see GlsSchematicPolyLineInterconnect::SetLineThickness
237 /// \param lineThickness The new thickness value to set.
238 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopLineThickness( const float lineThickness );
239
240 /// \return The thickness of the top side.
241 virtual float GetTopLineThickness() { return ( _top->GetLineThickness() ); }
242
243 /// Set the texture index of the left side.
244 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureIndex
245 /// \param textureIndex The new texture index to set.
247
248 /// \return the texture index of the left side
249 virtual int GetLeftInterconnectTextureIndex() { return ( _left->TextureIndex() ); }
250
251 /// Set the texture index of the right side.
252 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureIndex
253 /// \param textureIndex The new texture index to set.
255
256 /// \return The texture index of the right side.
257 virtual int GetRightInterconnectTextureIndex() { return ( _right->TextureIndex() ); }
258
259 /// Set the texture index of the base (bottom) side.
260 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureIndex
261 /// \param textureIndex The new texture index to set.
263
264 /// \return the texture index of the base (bottom) side
265 virtual int GetBaseInterconnectTextureIndex() { return ( _base->TextureIndex() ); }
266
267 /// Set the texture index of the top side.
268 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureIndex
269 /// \param textureIndex The new texture index to set.
271
272 /// \return The texture index of the top side.
273 virtual int GetTopInterconnectTextureIndex() { return ( _top->TextureIndex() ); }
274
275 /// Set the texture repeat length of the left side.
276 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureRepeatLength
277 /// \param textureRepeatLength The new texture repeat length to set.
279
280 /// \return The texture repeat length of the left side.
282
283 /// Set the texture repeat length of the right side.
284 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureRepeatLength
285 /// \param textureRepeatLength The new texture repeat length to set.
287
288 /// \return The texture repeat length of the right side.
290
291 /// Set the texture repeat length of the base (bottom) side.
292 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureRepeatLength
293 /// \param textureRepeatLength The new texture repeat length to set.
295
296 /// \return The texture repeat length of the base (bottom) side.
298
299 /// Set the texture repeat length of the top side.
300 /// \see GlsSchematicPolyLineInterconnect::SetInterconnectTextureRepeatLength
301 /// \param textureRepeatLength The new texture repeat length to set.
303
304 /// \return The texture repeat length of the top side.
306
307 /// Set the flow texture index of the left side.
308 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureIndex
309 /// \param textureIndex The new flow texture index to set.
311
312 /// \return The flow texture index of the left side.
313 virtual int GetLeftFlowTextureIndex() { return ( _left->GetFlowTextureIndex() ); }
314
315 /// Set the flow texture index of the right side.
316 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureIndex
317 /// \param textureIndex The new flow texture index to set.
319
320 /// \return The flow texture index of the right side.
321 virtual int GetRightFlowTextureIndex() { return ( _right->GetFlowTextureIndex() ); }
322
323 /// Set the flow texture index of the base (bottom) side.
324 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureIndex
325 /// \param textureIndex The new flow texture index to set.
327
328 /// \return The flow texture index of the base (bottom) side.
329 virtual int GetBaseFlowTextureIndex() { return ( _base->GetFlowTextureIndex() ); }
330
331 /// Set the flow texture index of the top side.
332 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureIndex
333 /// \param textureIndex The new flow texture index to set.
335
336 /// \return The flow texture index of the top side.
337 virtual int GetTopFlowTextureIndex() { return ( _top->GetFlowTextureIndex() ); }
338
339 /// Set the flow texture repeat length of the left side.
340 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureRepeatLength
341 /// \param textureRepeatLength The new texture repeat length to set.
342 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftFlowTextureRepeatLength( const float textureRepeatLength );
343
344 /// \return The flow texture repeat length of the left side.
346
347 /// Set the flow texture repeat length of the right side.
348 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureRepeatLength
349 /// \param textureRepeatLength The new texture repeat length to set.
350 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightFlowTextureRepeatLength( const float textureRepeatLength );
351
352 /// \return The flow texture repeat length of the right side.
354
355 /// Set the flow texture repeat length of the base (bottom) side.
356 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureRepeatLength
357 /// \param textureRepeatLength The new texture repeat length to set.
358 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseFlowTextureRepeatLength( const float textureRepeatLength );
359
360 /// \return The flow texture repeat length of the base (bottom) side.
362
363 /// Set the flow texture repeat length of the right side.
364 /// \see GlsSchematicPolyLineInterconnect::SetFlowTextureRepeatLength
365 /// \param textureRepeatLength The new texture repeat length to set.
366 virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopFlowTextureRepeatLength( const float textureRepeatLength );
367
368 /// \return The flow texture repeat length of the top side.
370
371 /// Set the flow visibility for the left side.
372 /// \see GlsSchematicPolyLineInterconnect::SetShowFlow
373 /// \param showFlow The new flow visibility flag to set.
375
376 /// \return The flow visibility for the left side.
377 virtual bool GetLeftShowFlow() { return ( _left->GetShowFlow() ); }
378
379 /// Set the flow visibility for the right side.
380 /// \see GlsSchematicPolyLineInterconnect::SetShowFlow
381 /// \param showFlow The new flow visibility flag to set.
383
384 /// \return The flow visibility for the right side.
385 virtual bool GetRightShowFlow() { return ( _right->GetShowFlow() ); }
386
387 /// Set the flow visibility for the base (bottom) side.
388 /// \see GlsSchematicPolyLineInterconnect::SetShowFlow
389 /// \param showFlow The new flow visibility flag to set.
391
392 /// \return The flow visibility for the base (bottom) side.
393 virtual bool GetBaseShowFlow() { return ( _base->GetShowFlow() ); }
394
395 /// Set the flow visibility for the top side.
396 /// \see GlsSchematicPolyLineInterconnect::SetShowFlow
397 /// \param showFlow The new flow visibility flag to set.
399
400 /// \return The flow visibility for the top side.
401 virtual bool GetTopShowFlow() { return ( _top->GetShowFlow() ); }
402
403 /// Set the flow rate for the left side.
404 /// \see GlsSchematicPolyLineInterconnect::SetFlowRate
405 /// \param flowRate The new flow rate to set.
406 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowRate( const float flowRate );
407
408 /// \return The flow rate for the left side.
409 virtual float GetLeftFlowRate() { return ( _left->GetFlowRate() ); }
410
411 /// Set the flow rate for the right side.
412 /// \see GlsSchematicPolyLineInterconnect::SetFlowRate
413 /// \param flowRate The new flow rate to set.
415
416 /// \return The flow rate for the right side.
417 virtual float GetRightFlowRate() { return ( _right->GetFlowRate() ); }
418
419 /// Set the flow rate for the base (bottom) side.
420 /// \see GlsSchematicPolyLineInterconnect::SetFlowRate
421 /// \param flowRate The new flow rate to set.
422 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowRate( const float flowRate );
423
424 /// \return The flow rate for the base (bottom) side.
425 virtual float GetBaseFlowRate() { return ( _base->GetFlowRate() ); }
426
427 /// Set the flow rate for the top side.
428 /// \see GlsSchematicPolyLineInterconnect::SetFlowRate
429 /// \param flowRate The new flow rate to set.
430 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowRate( const float flowRate );
431
432 /// \return The flow rate for the top side.
433 virtual float GetTopFlowRate() { return ( _top->GetFlowRate() ); }
434
435 /// Set the flow blink visibility flag for the left side.
436 /// \see GlsSchematicPolyLineInterconnect::SetShowFlowBlink
437 /// \param showFlowBlink The new flow blink visibility flag to set.
438 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftShowFlowBlink( const bool showFlowBlink );
439
440 /// \return The flow blink visibility flag for the left side.
441 virtual bool GetLeftShowFlowBlink() { return ( _left->GetShowFlowBlink() ); }
442
443 /// Set the flow blink visibility flag for the right side.
444 /// \see GlsSchematicPolyLineInterconnect::SetShowFlowBlink
445 /// \param showFlowBlink The new flow blink visibility flag to set.
446 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightShowFlowBlink( const bool showFlowBlink );
447
448 /// \return The flow blink visibility flag for the right side.
449 virtual bool GetRightShowFlowBlink() { return ( _right->GetShowFlowBlink() ); }
450
451 /// Set the flow blink visibility flag for the base (bottom) side.
452 /// \see GlsSchematicPolyLineInterconnect::SetShowFlowBlink
453 /// \param showFlowBlink The new flow blink visibility flag to set.
454 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseShowFlowBlink( const bool showFlowBlink );
455
456 /// \return The flow blink visibility flag for the base (bottom) side.
457 virtual bool GetBaseShowFlowBlink() { return ( _base->GetShowFlowBlink() ); }
458
459 /// Set the flow blink visibility flag for the top side.
460 /// \see GlsSchematicPolyLineInterconnect::SetShowFlowBlink
461 /// \param showFlowBlink The new flow blink visibility flag to set.
462 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopShowFlowBlink( const bool showFlowBlink );
463
464 /// \return The flow blink visibility flag for the top side.
465 virtual bool GetTopShowFlowBlink() { return ( _top->GetShowFlowBlink() ); }
466
467 /// Set the flow blink rate for the left side.
468 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkRate
469 /// \param flowBlinkRate The new flow blink rate to set.
470 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowBlinkRate( const float flowBlinkRate );
471
472 /// \return The flow blink rate for the left side.
473 virtual float GetLeftFlowBlinkRate() { return ( _left->GetFlowBlinkRate() ); }
474
475 /// Set the flow blink rate for the right side.
476 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkRate
477 /// \param flowBlinkRate The new flow blink rate to set.
478 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowBlinkRate( const float flowBlinkRate );
479
480 /// \return The flow blink rate for the right side.
481 virtual float GetRightFlowBlinkRate() { return ( _right->GetFlowBlinkRate() ); }
482
483 /// Set the flow blink rate for the base (bottom) side.
484 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkRate
485 /// \param flowBlinkRate The new flow blink rate to set.
486 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowBlinkRate( const float flowBlinkRate );
487
488 /// \return The flow blink rate for the base (bottom) side.
489 virtual float GetBaseFlowBlinkRate() { return ( _base->GetFlowBlinkRate() ); }
490
491 /// Set the flow blink rate for the top side.
492 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkRate
493 /// \param flowBlinkRate The new flow blink rate to set.
494 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowBlinkRate( const float flowBlinkRate );
495
496 /// \return The flow blink rate for the top side.
497 virtual float GetTopFlowBlinkRate() { return ( _top->GetFlowBlinkRate() ); }
498
499 /// Set the flow blink start color for the left side.
500 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkStartColor
501 /// \param startColor The new blink start color to set.
503
504 /// \return The flow blink start color for the left side.
506
507 /// Set the flow blink start color for the right side.
508 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkStartColor
509 /// \param startColor The new blink start color to set.
511
512 /// \return The flow blink start color for the right side.
514
515 /// Set the flow blink start color for the base (bottom) side.
516 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkStartColor
517 /// \param startColor The new blink start color to set.
519
520 /// \return The flow blink start color for the base (bottom) side.
522
523 /// Set the flow blink start color for the top side.
524 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkStartColor
525 /// \param startColor The new blink start color to set.
527
528 /// \return The flow blink start color for the top side.
530
531 /// Set the flow blink end color for the left side.
532 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkEndColor
533 /// \param endColor The new flow blink end color to set.
535
536 /// \return The flow blink end color for the left side.
538
539 /// Set the flow blink end color for the right side.
540 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkEndColor
541 /// \param endColor The new flow blink end color to set.
543
544 /// \return The flow blink end color for the right side.
546
547 /// Set the flow blink end color for the base (bottom) side.
548 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkEndColor
549 /// \param endColor The new flow blink end color to set.
551
552 /// \return The flow blink end color for the base (bottom) side.
554
555 /// Set the flow blink end color for the top side.
556 /// \see GlsSchematicPolyLineInterconnect::SetFlowBlinkEndColor
557 /// \param endColor The new flow blink end color to set.
559
560 /// \return The flow blink end color for the top side.
562
563 /** set the top of the tee visible
564 * \param topVisible true to set top visible
565 */
566 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopVisible( const bool topVisible );
567
568 /** determine if the top of the tee is visible
569 * \return true if top is visible
570 */
571 virtual bool GetTopVisible() { return ( _top->Visibility() ); }
572
573#ifndef GLES
574 /** enable/disable using display list for drawing
575 * \param useDisplayList true to use display list
576 */
577 virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetUseDisplayList( const bool useDisplayList );
578
579 /** get use display list
580 * \return true if using display list for drawing
581 */
582 virtual bool GetUseDisplayList() { return ( _left->GetUseDisplayList() ); }
583#endif
584
585protected:
586 /** helper method to setup render attributes on the given leg to the render attributes of the tee
587 * and then draw the leg
588 * \param leg leg to configure and draw
589 */
591
592 /** flag lines to be adjusted for vertices on next draw */
594
595 /** adjust lines to match vertices */
597
598#ifdef GLES
599 /** Set a single attribute from the GLO file.
600 * \param data The attribute to set and its associated data.
601 */
603#endif
604
605 GlsSchematicPolyLineInterconnect* _left; /**< left side of tee */
606 GlsSchematicPolyLineInterconnect* _right; /**< right side of tee */
608 GlsSchematicPolyLineInterconnect* _top; /**< top of tee (visible if top enabled) */
609
610 bool _needsRebuild; /**< true if the lines need to be adjusted to match the vertices */
611};
612
613} // namespace disti
614
615#endif
Definition: cull.h:49
Definition: events.h:111
Definition: display_frame.h:86
Definition: display.h:95
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar=0)
bool Visibility() const
Definition: display.h:1447
virtual int TextureIndex()
DisplayFrame * Parent() const
Definition: display.h:944
virtual void SetVertices(unsigned int nPoints, Vertex *vertices)
virtual void Rotate(float angle, int axis=Z_AXIS)
Definition: dynamic_array.h:79
The Polygon class. Implements Polygons.
Definition: glpolygon.h:55
Definition: gls_color.h:53
Definition: gls_glo_file.h:1241
Definition: gls_painter.h:50
Definition: gls_schematic_poly_line_interconnect.h:100
virtual float GetInterconnectTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:124
GlsSchematicPolyLineInterconnect * _top
Definition: gls_schematic_tee_interconnect.h:608
virtual void SetBaseFlowBlinkRate(const float flowBlinkRate)
virtual void SetRightFlowTextureRepeatLength(const float textureRepeatLength)
virtual void SetLeftFlowBlinkRate(const float flowBlinkRate)
virtual void SetBaseInterconnectTextureIndex(const int textureIndex)
virtual void SetTopShowFlow(const bool showFlow)
virtual void SetRightFlowRate(const float flowRate)
virtual void SetTopFlowBlinkEndColor(const GlsColor &endColor)
virtual int GetRightFlowTextureIndex()
Definition: gls_schematic_tee_interconnect.h:321
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
virtual GlsColor GetRightFlowBlinkStartColor()
Definition: gls_schematic_tee_interconnect.h:513
virtual float GetTopFlowTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:369
void ParentGroup(Group *group) DISTI_METHOD_OVERRIDE
virtual float GetRightFlowRate()
Definition: gls_schematic_tee_interconnect.h:417
virtual void SetRightShowFlow(const bool showFlow)
virtual float GetBaseFlowBlinkRate()
Definition: gls_schematic_tee_interconnect.h:489
virtual void SetBaseShowFlow(const bool showFlow)
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
bool _needsRebuild
Definition: gls_schematic_tee_interconnect.h:610
virtual bool GetUseDisplayList()
Definition: gls_schematic_tee_interconnect.h:582
virtual GlsColor GetTopFlowBlinkEndColor()
Definition: gls_schematic_tee_interconnect.h:561
virtual float GetTopLineThickness()
Definition: gls_schematic_tee_interconnect.h:241
virtual void SetTopFlowTextureRepeatLength(const float textureRepeatLength)
virtual bool GetLeftShowFlowBlink()
Definition: gls_schematic_tee_interconnect.h:441
virtual void SetUseDisplayList(const bool useDisplayList)
virtual void SetLeftFlowBlinkEndColor(const GlsColor &endColor)
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
virtual void SetLeftLineThickness(const float lineThickness)
virtual GlsColor GetTopFlowBlinkStartColor()
Definition: gls_schematic_tee_interconnect.h:529
virtual float GetLeftFlowBlinkRate()
Definition: gls_schematic_tee_interconnect.h:473
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
virtual void SetRightFlowBlinkStartColor(const GlsColor &startColor)
virtual void SetTopInterconnectTextureIndex(const int textureIndex)
virtual void SetLeftFlowTextureIndex(const int textureIndex)
virtual float GetBaseFlowRate()
Definition: gls_schematic_tee_interconnect.h:425
virtual bool GetRightShowFlow()
Definition: gls_schematic_tee_interconnect.h:385
virtual bool GetLeftShowFlow()
Definition: gls_schematic_tee_interconnect.h:377
virtual void SetLeftFlowBlinkStartColor(const GlsColor &startColor)
virtual float GetBaseInterconnectTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:297
virtual float GetLeftFlowRate()
Definition: gls_schematic_tee_interconnect.h:409
virtual float GetLeftLineThickness()
Definition: gls_schematic_tee_interconnect.h:217
virtual float GetBaseLineThickness()
Definition: gls_schematic_tee_interconnect.h:233
virtual void SetTopShowFlowBlink(const bool showFlowBlink)
virtual void SetTopLineThickness(const float lineThickness)
virtual void SetTopFlowBlinkRate(const float flowBlinkRate)
virtual void SetLeftInterconnectTextureIndex(const int textureIndex)
virtual void SetBaseFlowBlinkEndColor(const GlsColor &endColor)
virtual GlsColor GetBaseFlowBlinkStartColor()
Definition: gls_schematic_tee_interconnect.h:521
virtual void SetLeftShowFlowBlink(const bool showFlowBlink)
virtual bool GetTopVisible()
Definition: gls_schematic_tee_interconnect.h:571
virtual GlsColor GetLeftFlowBlinkStartColor()
Definition: gls_schematic_tee_interconnect.h:505
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
virtual void SetTopInterconnectTextureRepeatLength(const float textureRepeatLength)
virtual void SetLeftFlowTextureRepeatLength(const float textureRepeatLength)
virtual float GetRightFlowBlinkRate()
Definition: gls_schematic_tee_interconnect.h:481
virtual void DrawLeg(GlsSchematicPolyLineInterconnect *leg)
virtual int GetBaseInterconnectTextureIndex()
Definition: gls_schematic_tee_interconnect.h:265
void SetVertices(unsigned int nPoints, Vertex *vertices) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:191
virtual float GetBaseFlowTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:361
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
virtual bool GetTopShowFlowBlink()
Definition: gls_schematic_tee_interconnect.h:465
virtual void SetBaseFlowBlinkStartColor(const GlsColor &startColor)
virtual void SetRightFlowBlinkRate(const float flowBlinkRate)
virtual void SetTopVisible(const bool topVisible)
virtual void SetBaseLineThickness(const float lineThickness)
virtual bool GetBaseShowFlowBlink()
Definition: gls_schematic_tee_interconnect.h:457
void CalculateTextureCoordinates() DISTI_METHOD_OVERRIDE
virtual float GetLeftFlowTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:345
bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
virtual int GetLeftFlowTextureIndex()
Definition: gls_schematic_tee_interconnect.h:313
virtual GlsColor GetRightFlowBlinkEndColor()
Definition: gls_schematic_tee_interconnect.h:545
virtual void SetRightFlowTextureIndex(const int textureIndex)
virtual bool GetTopShowFlow()
Definition: gls_schematic_tee_interconnect.h:401
virtual void SetBaseFlowRate(const float flowRate)
virtual void SetTopFlowBlinkStartColor(const GlsColor &startColor)
virtual float GetRightFlowTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:353
GlsSchematicPolyLineInterconnect * _right
Definition: gls_schematic_tee_interconnect.h:606
virtual int GetRightInterconnectTextureIndex()
Definition: gls_schematic_tee_interconnect.h:257
virtual float GetTopFlowBlinkRate()
Definition: gls_schematic_tee_interconnect.h:497
virtual void SetRightInterconnectTextureIndex(const int textureIndex)
void SetPainter(GlsPainter *painter) DISTI_METHOD_OVERRIDE
virtual void SetBaseFlowTextureIndex(const int textureIndex)
void Scale(float px, float py, float pz, Vertex *anchor, int handleBar=0) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:179
virtual void SetRightLineThickness(const float lineThickness)
virtual float GetLeftInterconnectTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:281
virtual bool GetRightShowFlowBlink()
Definition: gls_schematic_tee_interconnect.h:449
virtual void SetRightShowFlowBlink(const bool showFlowBlink)
virtual void SetRightFlowBlinkEndColor(const GlsColor &endColor)
virtual void SetLeftInterconnectTextureRepeatLength(const float textureRepeatLength)
virtual int GetLeftInterconnectTextureIndex()
Definition: gls_schematic_tee_interconnect.h:249
virtual GlsColor GetBaseFlowBlinkEndColor()
Definition: gls_schematic_tee_interconnect.h:553
virtual void SetLeftShowFlow(const bool showFlow)
virtual GlsColor GetLeftFlowBlinkEndColor()
Definition: gls_schematic_tee_interconnect.h:537
virtual void SetBaseInterconnectTextureRepeatLength(const float textureRepeatLength)
virtual void SetTopFlowTextureIndex(const int textureIndex)
virtual float GetTopInterconnectTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:305
virtual float GetTopFlowRate()
Definition: gls_schematic_tee_interconnect.h:433
void Calculate(double time) DISTI_METHOD_OVERRIDE
virtual int GetTopInterconnectTextureIndex()
Definition: gls_schematic_tee_interconnect.h:273
virtual float GetRightLineThickness()
Definition: gls_schematic_tee_interconnect.h:225
virtual void SetBaseFlowTextureRepeatLength(const float textureRepeatLength)
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
virtual int GetBaseFlowTextureIndex()
Definition: gls_schematic_tee_interconnect.h:329
virtual void SetBaseShowFlowBlink(const bool showFlowBlink)
virtual void SetLeftFlowRate(const float flowRate)
virtual bool GetBaseShowFlow()
Definition: gls_schematic_tee_interconnect.h:393
GlsSchematicPolyLineInterconnect * _left
Definition: gls_schematic_tee_interconnect.h:605
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
GlsSchematicPolyLineInterconnect * _base
Definition: gls_schematic_tee_interconnect.h:607
virtual float GetRightInterconnectTextureRepeatLength()
Definition: gls_schematic_tee_interconnect.h:289
virtual int GetTopFlowTextureIndex()
Definition: gls_schematic_tee_interconnect.h:337
void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:185
virtual void SetRightInterconnectTextureRepeatLength(const float textureRepeatLength)
virtual void SetTopFlowRate(const float flowRate)
Definition: group.h:52
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
Definition: vertex.h:84
Definition: vertex.h:419
The disti::GLPolygon class. Implements Polygons.
The gls_auto_lib.
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:487
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
The disti::GlsSchematicPolyLineInterconnect class.
#define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT
Provides support for creating DLLs.
Definition: gls_schematic_tee_interconnect.h:55
Definition: bmpimage.h:46