GL Studio C++ Runtime API
gls_schematic_tee_interconnect.h
Go to the documentation of this file.
1 #ifndef _GLSSCHEMATICTEEINTERCONNECT_H
2 #define _GLSSCHEMATICTEEINTERCONNECT_H
3 
4 /*! \file
5  \brief The disti::GlsSchematicTeeInterconnect class.
6 
7  \par Copyright Information
8 
9  Copyright (c) 2017 by The DiSTI Corporation.<br>
10  11301 Corporate Blvd; Suite 100<br>
11  Orlando, Florida 32817<br>
12  USA<br>
13  <br>
14  All rights reserved.<br>
15 
16  This Software contains proprietary trade secrets of DiSTI and may not be
17 reproduced, in whole or part, in any form, or by any means of electronic,
18 mechanical, or otherwise, without the written permission of DiSTI. Said
19 permission may be derived through the purchase of applicable DiSTI product
20 licenses which detail the distribution rights of this content and any
21 Derivative Works based on this or other copyrighted DiSTI Software.
22 
23  NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
24 AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
25 PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
26 AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
28 PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
29 
30  LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
31 IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
32 INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
33 DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
34 INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
35 INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY
36 OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
37 EXCEED FIVE DOLLARS (US$5.00).
38 
39  The aforementioned terms and restrictions are governed by the laws of the
40 State of Florida and the United States of America.
41 */
42 
43 #include "glpolygon.h"
44 #include "gls_cpp_lang_support.h"
46 
47 //////////////////// Provides support for creating DLLs ////////////////////////
48 #if( defined( GLSGEN_EXPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLSGEN_IMPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
49  && defined( _MSC_VER )
50 # if defined( GLSGEN_EXPORT_GLSSCHEMATICTEEINTERCONNECT ) || defined( GLS_EXPORT_GENERATED )
51 # define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT __declspec( dllexport )
52 # else
53 # define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT __declspec( dllimport )
54 # endif
55 #else
56 # define GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT
57 #endif
58 ///////////////////////////////////////////////////////////////////////////////
59 
60 #define LIB_BASE_NAME "gls_schematic_tee_interconnect"
61 #include "gls_auto_lib.h"
62 #undef LIB_BASE_NAME
63 
64 namespace disti
65 {
66 // SetValue enumerations
67 enum
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
119 class GlsGloFileAttribute;
120 #endif
121 
122 /** Runtime implementation of a GlsSchematicTeeInterconnect */
124 {
125 private:
128 
129  void CopyPropertiesInternal( GlsSchematicTeeInterconnect* src );
130 
131 public:
132  DISTI_DEPRECATED( "This identifier is forbidden by the C++ standard. Use BaseClass instead." )
133  typedef GLPolygon _BaseClass;
134  typedef GLPolygon BaseClass;
135  friend class GlsSchematicTeeInterconnectEditor;
136 
137  /** Create a new GlsSchematicTeeInterconnect.
138  * \param generateInstance Whether or not to generate an instance name
139  * for this inputdevice */
140  GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GlsSchematicTeeInterconnect( bool generateInstance = false );
141  GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GlsSchematicTeeInterconnect( const GlsSchematicTeeInterconnect& that, const bool generateNames );
142 
143  /** Destructs a GlsSchematicTeeInterconnect object */
144  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT ~GlsSchematicTeeInterconnect();
145 
146  static GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT DisplayObject* CreateInstance();
147 
148  //////////////////////////////////////////////////
149  // Overridden base class methods
150  //////////////////////////////////////////////////
151 
152  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetAvailableAttributes( unsigned int value ) DISTI_METHOD_OVERRIDE;
153  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT DisplayObject* CloneObject( bool generateNames = false ) DISTI_METHOD_OVERRIDE;
154  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void CopyProperties( DisplayObject* src ) DISTI_METHOD_OVERRIDE;
155 
156 #ifndef GLES
157  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT InterfaceListType* GetCppInterfaceDescription( InterfaceListType* addToThisList = NULL ) DISTI_METHOD_OVERRIDE;
158  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void GetCppInterfaceDescriptionFree( InterfaceListType* array ) DISTI_METHOD_OVERRIDE;
159 #endif
160 
161  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void Calculate( double time ) DISTI_METHOD_OVERRIDE;
162  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void PreDraw( const OpenGLMatrices& parentMatrices, Culler& culler ) DISTI_METHOD_OVERRIDE;
163  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void Draw( void ) DISTI_METHOD_OVERRIDE;
164 
165  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void CalculateTextureCoordinates( void ) DISTI_METHOD_OVERRIDE;
166 
167  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT bool Hit( float x, float y, float z, float scale, const Vector& directionVector, Vector* collisionPoint ) DISTI_METHOD_OVERRIDE;
168 
169  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT DisplayObject* handle( DisplayEvent* ev ) DISTI_METHOD_OVERRIDE;
170 
171  GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetPainter( GlsPainter* painter ) DISTI_METHOD_OVERRIDE;
172 
173  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetValue( int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
174 
175  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void Scale( float px, float py, float pz, Vertex* anchor, int handleBar = 0 ) DISTI_METHOD_OVERRIDE
176  {
177  BaseClass::Scale( px, py, pz, anchor, handleBar );
178  SetRebuild();
179  }
180 
181  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void Rotate( const Vector& orig, float angle, const Vector& axis ) DISTI_METHOD_OVERRIDE
182  {
183  BaseClass::Rotate( orig, angle, axis );
184  SetRebuild();
185  }
186 
187  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetVertices( unsigned int nPoints, Vertex* vertices ) DISTI_METHOD_OVERRIDE
188  {
189  BaseClass::SetVertices( nPoints, vertices );
190  SetRebuild();
191  }
192 
193 #ifdef GLES
194  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void Parent( DisplayFrame* parent ) DISTI_METHOD_OVERRIDE;
195  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT DisplayFrame* Parent( void ) { return DisplayObject::Parent(); }
196 #endif
197 
198  GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void ParentGroup( Group* group ) DISTI_METHOD_OVERRIDE;
199 
200  //////////////////////////////////////////////////
201  // GlsSchematicTeeInterconnect specific operations
202  //////////////////////////////////////////////////
203 
204  // see GlsSchematicPolyLineInterconnect::SetLineThickness
205  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftLineThickness( const float lineThickness );
206  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetLeftLineThickness( void ) { return ( _left->GetLineThickness() ); }
207  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightLineThickness( const float lineThickness );
208  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetRightLineThickness( void ) { return ( _right->GetLineThickness() ); }
209  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseLineThickness( const float lineThickness );
210  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetBaseLineThickness( void ) { return ( _base->GetLineThickness() ); }
211  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopLineThickness( const float lineThickness );
212  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetTopLineThickness( void ) { return ( _top->GetLineThickness() ); }
213 
214  // see GlsSchematicPolyLineInterconnect::SetInterconnectTextureIndex
215  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftInterconnectTextureIndex( const int textureIndex );
216  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT int GetLeftInterconnectTextureIndex( void ) { return ( _left->TextureIndex() ); }
217  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightInterconnectTextureIndex( const int textureIndex );
218  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT int GetRightInterconnectTextureIndex( void ) { return ( _right->TextureIndex() ); }
219  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseInterconnectTextureIndex( const int textureIndex );
220  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT int GetBaseInterconnectTextureIndex( void ) { return ( _base->TextureIndex() ); }
221  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopInterconnectTextureIndex( const int textureIndex );
222  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT int GetTopInterconnectTextureIndex( void ) { return ( _top->TextureIndex() ); }
223 
224  // see GlsSchematicPolyLineInterconnect::SetInterconnectTextureRepeatLength
225  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftInterconnectTextureRepeatLength( const float textureRepeatLength );
226  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetLeftInterconnectTextureRepeatLength( void ) { return ( _left->GetInterconnectTextureRepeatLength() ); }
227  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightInterconnectTextureRepeatLength( const float textureRepeatLength );
228  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetRightInterconnectTextureRepeatLength( void ) { return ( _right->GetInterconnectTextureRepeatLength() ); }
229  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseInterconnectTextureRepeatLength( const float textureRepeatLength );
230  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetBaseInterconnectTextureRepeatLength( void ) { return ( _base->GetInterconnectTextureRepeatLength() ); }
231  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopInterconnectTextureRepeatLength( const float textureRepeatLength );
232  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetTopInterconnectTextureRepeatLength( void ) { return ( _top->GetInterconnectTextureRepeatLength() ); }
233 
234  // see GlsSchematicPolyLineInterconnect::SetFlowTextureIndex
235  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowTextureIndex( const int textureIndex );
236  virtual int GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftFlowTextureIndex( void ) { return ( _left->GetFlowTextureIndex() ); }
237  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowTextureIndex( const int textureIndex );
238  virtual int GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightFlowTextureIndex( void ) { return ( _right->GetFlowTextureIndex() ); }
239  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowTextureIndex( const int textureIndex );
240  virtual int GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseFlowTextureIndex( void ) { return ( _base->GetFlowTextureIndex() ); }
241  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowTextureIndex( const int textureIndex );
242  virtual int GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopFlowTextureIndex( void ) { return ( _top->GetFlowTextureIndex() ); }
243 
244  // see GlsSchematicPolyLineInterconnect::SetFlowTextureRepeatLength
245  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetLeftFlowTextureRepeatLength( const float textureRepeatLength );
246  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetLeftFlowTextureRepeatLength( void ) { return ( _left->GetFlowTextureRepeatLength() ); }
247  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetRightFlowTextureRepeatLength( const float textureRepeatLength );
248  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetRightFlowTextureRepeatLength( void ) { return ( _right->GetFlowTextureRepeatLength() ); }
249  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetBaseFlowTextureRepeatLength( const float textureRepeatLength );
250  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetBaseFlowTextureRepeatLength( void ) { return ( _base->GetFlowTextureRepeatLength() ); }
251  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetTopFlowTextureRepeatLength( const float textureRepeatLength );
252  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT float GetTopFlowTextureRepeatLength( void ) { return ( _top->GetFlowTextureRepeatLength() ); }
253 
254  // see GlsSchematicPolyLineInterconnect::SetShowFlow
255  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftShowFlow( const bool showFlow );
256  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftShowFlow( void ) { return ( _left->GetShowFlow() ); }
257  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightShowFlow( const bool showFlow );
258  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightShowFlow( void ) { return ( _right->GetShowFlow() ); }
259  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseShowFlow( const bool showFlow );
260  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseShowFlow( void ) { return ( _base->GetShowFlow() ); }
261  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopShowFlow( const bool showFlow );
262  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopShowFlow( void ) { return ( _top->GetShowFlow() ); }
263 
264  // see GlsSchematicPolyLineInterconnect::SetFlowRate
265  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowRate( const float flowRate );
266  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftFlowRate( void ) { return ( _left->GetFlowRate() ); }
267  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowRate( const float flowRate );
268  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightFlowRate( void ) { return ( _right->GetFlowRate() ); }
269  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowRate( const float flowRate );
270  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseFlowRate( void ) { return ( _base->GetFlowRate() ); }
271  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowRate( const float flowRate );
272  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopFlowRate( void ) { return ( _top->GetFlowRate() ); }
273 
274  // see GlsSchematicPolyLineInterconnect::SetShowFlowBlink
275  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftShowFlowBlink( const bool showFlowBlink );
276  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftShowFlowBlink( void ) { return ( _left->GetShowFlowBlink() ); }
277  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightShowFlowBlink( const bool showFlowBlink );
278  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightShowFlowBlink( void ) { return ( _right->GetShowFlowBlink() ); }
279  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseShowFlowBlink( const bool showFlowBlink );
280  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseShowFlowBlink( void ) { return ( _base->GetShowFlowBlink() ); }
281  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopShowFlowBlink( const bool showFlowBlink );
282  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopShowFlowBlink( void ) { return ( _top->GetShowFlowBlink() ); }
283 
284  // see GlsSchematicPolyLineInterconnect::SetFlowBlinkRate
285  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowBlinkRate( const float flowBlinkRate );
286  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftFlowBlinkRate( void ) { return ( _left->GetFlowBlinkRate() ); }
287  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowBlinkRate( const float flowBlinkRate );
288  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightFlowBlinkRate( void ) { return ( _right->GetFlowBlinkRate() ); }
289  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowBlinkRate( const float flowBlinkRate );
290  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseFlowBlinkRate( void ) { return ( _base->GetFlowBlinkRate() ); }
291  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowBlinkRate( const float flowBlinkRate );
292  virtual float GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopFlowBlinkRate( void ) { return ( _top->GetFlowBlinkRate() ); }
293 
294  // see GlsSchematicPolyLineInterconnect::SetFlowBlinkStartColor
295  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowBlinkStartColor( const GlsColor& startColor );
296  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftFlowBlinkStartColor( void ) { return ( _left->GetFlowBlinkStartColor() ); }
297  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowBlinkStartColor( const GlsColor& startColor );
298  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightFlowBlinkStartColor( void ) { return ( _right->GetFlowBlinkStartColor() ); }
299  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowBlinkStartColor( const GlsColor& startColor );
300  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseFlowBlinkStartColor( void ) { return ( _base->GetFlowBlinkStartColor() ); }
301  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowBlinkStartColor( const GlsColor& startColor );
302  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopFlowBlinkStartColor( void ) { return ( _top->GetFlowBlinkStartColor() ); }
303 
304  // see GlsSchematicPolyLineInterconnect::SetFlowBlinkEndColor
305  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetLeftFlowBlinkEndColor( const GlsColor& endColor );
306  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetLeftFlowBlinkEndColor( void ) { return ( _left->GetFlowBlinkEndColor() ); }
307  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetRightFlowBlinkEndColor( const GlsColor& endColor );
308  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetRightFlowBlinkEndColor( void ) { return ( _right->GetFlowBlinkEndColor() ); }
309  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetBaseFlowBlinkEndColor( const GlsColor& endColor );
310  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetBaseFlowBlinkEndColor( void ) { return ( _base->GetFlowBlinkEndColor() ); }
311  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetTopFlowBlinkEndColor( const GlsColor& endColor );
312  virtual GlsColor GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetTopFlowBlinkEndColor( void ) { return ( _top->GetFlowBlinkEndColor() ); }
313 
314  /** set the top of the tee visible
315  * \param topVisible true to set top visible
316  */
317  virtual void SetTopVisible( const bool topVisible );
318 
319  /** determine if the top of the tee is visible
320  * \return true if top is visible
321  */
322  virtual bool GetTopVisible( void ) { return ( _top->Visibility() ); }
323 
324 #ifndef GLES
325  /** enable/disable using display list for drawing
326  * \param useDisplayList true to use display list
327  */
328  virtual void GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT SetUseDisplayList( const bool useDisplayList );
329 
330  /** get use display list
331  * \return true if using display list for drawing
332  */
333  virtual bool GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT GetUseDisplayList( void ) { return ( _left->GetUseDisplayList() ); }
334 #endif
335 
336 protected:
337  /** helper method to setup render attributes on the given leg to the render attributes of the tee
338  * and then draw the leg
339  * \param leg leg to configure and draw
340  */
341  virtual void DrawLeg( GlsSchematicPolyLineInterconnect* leg );
342 
343  /** flag lines to be adjusted for vertices on next draw */
344  virtual void SetRebuild( void );
345 
346  /** adjust lines to match vertices */
347  virtual void Rebuild( void );
348 
349 #ifdef GLES
350  /** Set a single attribute from the GLO file.
351  * \param data The attribute to set and its associated data.
352  */
353  virtual GLSGEN_GLSSCHEMATICTEEINTERCONNECT_EXPORT void SetFromGloData( GlsGloFileAttribute& data ) DISTI_METHOD_OVERRIDE;
354 #endif
355 
356  GlsSchematicPolyLineInterconnect* _left; /**< left side of tee */
357  GlsSchematicPolyLineInterconnect* _right; /**< right side of tee */
359  GlsSchematicPolyLineInterconnect* _top; /**< top of tee (visible if top enabled) */
360 
361  bool _needsRebuild; /**< true if the lines need to be adjusted to match the vertices */
362 };
363 
364 } // namespace disti
365 
366 #endif
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
Definition: cull.h:49
Definition: display_frame.h:85
Definition: vertex.h:409
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
virtual void SetVertices(unsigned int nPoints, Vertex *vertices)
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
void SetPainter(GlsPainter *painter) DISTI_METHOD_OVERRIDE
Definition: dynamic_array.h:66
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:471
The disti::GlsSchematicPolyLineInterconnect class.
bool _needsRebuild
Definition: gls_schematic_tee_interconnect.h:361
GlsSchematicPolyLineInterconnect * _base
Definition: gls_schematic_tee_interconnect.h:358
The Polygon class. Implements Polygons.
Definition: glpolygon.h:55
DisplayFrame * Parent(void) const
Definition: display.h:932
GlsSchematicPolyLineInterconnect * _right
Definition: gls_schematic_tee_interconnect.h:357
Definition: display.h:98
GlsSchematicPolyLineInterconnect * _left
Definition: gls_schematic_tee_interconnect.h:356
virtual GlsColor GetFlowBlinkEndColor(void)
The disti::GLPolygon class. Implements Polygons.
virtual float GetFlowTextureRepeatLength(void)
bool Visibility(void) const
Definition: display.h:1445
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar=0) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:175
GlsSchematicPolyLineInterconnect * _top
Definition: gls_schematic_tee_interconnect.h:359
Definition: gls_glo_file.h:988
virtual DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
virtual void CalculateTextureCoordinates(void) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:123
virtual void Rotate(const Vector &orig, float angle, const Vector &axis) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:181
Definition: gls_painter.h:51
virtual void SetUseDisplayList(const bool useDisplayList)
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
virtual int TextureIndex(void)
virtual bool GetTopVisible(void)
Definition: gls_schematic_tee_interconnect.h:322
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
virtual void SetVertices(unsigned int nPoints, Vertex *vertices) DISTI_METHOD_OVERRIDE
Definition: gls_schematic_tee_interconnect.h:187
Definition: events.h:112
virtual void Rotate(float angle, int axis=Z_AXIS)
virtual void Calculate(double time) DISTI_METHOD_OVERRIDE
virtual GlsColor GetFlowBlinkStartColor(void)
The gls_auto_lib.
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
virtual float GetInterconnectTextureRepeatLength(void)
Definition: gls_schematic_poly_line_interconnect.h:98
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
virtual void Scale(float px, float py, float pz, Vertex *anchor, int handleBar=0)
Definition: vertex.h:84
virtual void DrawLeg(GlsSchematicPolyLineInterconnect *leg)
virtual void SetTopVisible(const bool topVisible)
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46
virtual bool GetUseDisplayList(void)
Definition: gls_schematic_tee_interconnect.h:333
virtual void Draw(void) DISTI_METHOD_OVERRIDE
Group * ParentGroup(void) const
Definition: display.h:942
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE