~ubuntu-branches/ubuntu/wily/ifrit/wily

« back to all changes in this revision

Viewing changes to core/iviewsubject.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2009-09-13 14:53:24 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090913145324-084ivqvf29arkc1b
Tags: 3.3.2-1
* New upstream release.
* Bump Standards-Version to 3.8.3.  No changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*=========================================================================
2
 
 
3
 
  Program:   Ionization FRont Interactive Tool (IFRIT)
4
 
  Language:  C++
5
 
 
6
 
 
7
 
Copyright (c) 2002-2006 Nick Gnedin 
8
 
All rights reserved.
9
 
 
10
 
This file may be distributed and/or modified under the terms of the
11
 
GNU General Public License version 2 as published by the Free Software
12
 
Foundation and appearing in the file LICENSE.GPL included in the
13
 
packaging of this file.
14
 
 
15
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
16
 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
 
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
19
 
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
 
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
 
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
 
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
 
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 
 
26
 
=========================================================================*/
 
1
/*=========================================================================
 
2
 
 
3
  Program:   Ionization FRont Interactive Tool (IFRIT)
 
4
  Language:  C++
 
5
 
 
6
 
 
7
Copyright (c) 2002-2006 Nick Gnedin 
 
8
All rights reserved.
 
9
 
 
10
This file may be distributed and/or modified under the terms of the
 
11
GNU General Public License version 2 as published by the Free Software
 
12
Foundation and appearing in the file LICENSE.GPL included in the
 
13
packaging of this file.
 
14
 
 
15
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
 
16
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
17
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
18
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
 
19
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
20
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
21
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
22
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
23
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
24
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
25
 
 
26
=========================================================================*/
27
27
 
28
28
//
29
29
// A small Set of common functionality for all IFrIT viewization objects
52
52
class iViewSubjectPipeline;
53
53
 
54
54
 
 
55
namespace iParameter
 
56
{
 
57
        namespace ViewSubject
 
58
        {
 
59
                namespace Flag
 
60
                {
 
61
                        const unsigned int AlwaysShaded =         1U;
 
62
                        const unsigned int NoReplicating =        2U;
 
63
                        const unsigned int HasPosition =          4U;
 
64
                        const unsigned int NoColor =              8U;
 
65
                        const unsigned int NoOpacity =           16U;
 
66
                        const unsigned int NoPalette =           32U;
 
67
                        const unsigned int SameColor =           64U;
 
68
                        const unsigned int SameOpacity =        128U;
 
69
                        const unsigned int SamePalette =        256U;
 
70
                };
 
71
 
 
72
                namespace Location
 
73
                {
 
74
                        const int PickedPoint = 0;
 
75
                        const int FocalPoint =  1;
 
76
                        const int BoxCenter =   2;
 
77
                };
 
78
 
 
79
                namespace Id
 
80
                {
 
81
                        const int Undefined                     = -1;
 
82
                        const int CrossSection          = 0;
 
83
                        const int Particles                     = 1;
 
84
                        const int Surface                       = 2;
 
85
                        const int TensorField           = 3;
 
86
                        const int VectorField           = 4;
 
87
                        const int Volume                        = 5;
 
88
                };
 
89
        };
 
90
};
 
91
 
 
92
 
55
93
//
56
94
//  Useful macro to declare all keys that have to be present in children too
57
95
//
120
158
 
121
159
        virtual float GetMemorySize() const;
122
160
 
123
 
        inline int GetObjectType() const { return mObjectType; }
124
 
        inline const iString& GetObjectName() const { return mObjectName; }
 
161
        inline int GetSubjectId() const { return mSubjectId; }
 
162
        inline const iString& GetSubjectName() const { return mSubjectName; }
125
163
 
126
164
        void SetPosition(int location, bool detach = true);
127
165
        void SetPosition(const iPosition &p, bool detach = true);
193
231
        bool mCreatingMainPipeline;
194
232
 
195
233
        iViewSubjectObserver *mObjectObserver;
196
 
        iString mObjectName;
197
 
        int mObjectType, mAttachedMarkerIndex;
 
234
        iString mSubjectName;
 
235
        int mSubjectId, mAttachedMarkerIndex;
198
236
        iPosition mPosition;
199
237
 
200
238
        bool mIsInitialized, mIsConfigured;