HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UNI_Include.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UNI_Include.h ( UNI Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UNI_Include_h__
13 #define __UNI_Include_h__
14 
15 // Include IDs to reference UNI objects, like graphs, nodes, etc.
16 #include "UNI_ID.h"
17 #include "UNI_SessionID.h"
18 #include <UT/UT_StringHolder.h>
19 
20 /// Specifies the port kind, ie, wheter it is an input or an output port.
21 enum class UNI_PortKind
22 {
23  Invalid, // Unknown port kind; used for uninitialized state or errors.
24  Input, // Represents an input port.
25  Output // Represents an output port.
26 };
27 
28 /// Specifies the visual shape of the port in the UI.
29 enum class UNI_PortShape
30 {
31  Default, // Default shape, if nothing specific is required
32  Dot, // Round dot shape
33  Box, // Spare box shape
34 };
35 
36 /// Specifies the visual line shape of the connection wires in the UI.
37 /// This is saved as an int on the Apex Graph so do not reorder these !
39 {
40  Straight, // Straight line
41  Rounded, // Round connections
42 };
43 
44 /// Basic information about signature
46 {
47 public:
48  /// Constructor
50  : myName( name )
51  , myLabel( label )
52  {}
53 
54  /// Returns the identification name of the signature.
55  /// It could be a name, id, or a function signature, etc.
56  const UT_StringHolder & name() const { return myName; }
57 
58  /// Returns the label used in GUI menus.
59  const UT_StringHolder & label() const { return myLabel; }
60 
61 private:
62  UT_StringHolder myName; // Signature name/id/function
63  UT_StringHolder myLabel; // Text used in GUI menus
64 };
65 
66 #endif
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
const UT_StringHolder & label() const
Returns the label used in GUI menus.
Definition: UNI_Include.h:59
UNI_PortKind
Specifies the port kind, ie, wheter it is an input or an output port.
Definition: UNI_Include.h:21
GLuint const GLchar * name
Definition: glcorearb.h:786
Basic information about signature.
Definition: UNI_Include.h:45
UNI_Signature(const UT_StringRef &name, const UT_StringRef &label)
Constructor.
Definition: UNI_Include.h:49
const UT_StringHolder & name() const
Definition: UNI_Include.h:56
UNI_WireStyle
Definition: UNI_Include.h:38
UNI_PortShape
Specifies the visual shape of the port in the UI.
Definition: UNI_Include.h:29