VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
indexedMarked.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: indexedMarked.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef indexedMarked_H_
10 #define indexedMarked_H_
11 
12 #include "gdb/gdbDefines.h"
13 #include <vlutil/vlMachineTypes.h>
14 
15 // class DtIndexedMarked:
16 //
17 // Provides and indexed/markable interface.
18 // @note This class has no virtual functions on purpose to reduce the size
19 // of the items as DtPointIndexedMarked instances contain a DtIndexedMarked.
20 // This means that a DtIndexedMarked is created for every vertex when the
21 // vertex manager is reducing vertices, which very much adds up for large scenes.
22 // Additionally, this class is @bnot intended to be derived from.
23 //
25 {
26 public:
27 
28  // default constructor
30 
31  // destructor
32  ~DtIndexedMarked();
33 
34  // copy constructor
35  DtIndexedMarked(const DtIndexedMarked& orig);
36 
37  // assignment operator
38  DtIndexedMarked& operator=(const DtIndexedMarked& orig);
39 
40  //get and set for index0
41  unsigned int getIndex0() const;
42  void setIndex0(unsigned int indexIn);
43 
44  //get and set marked
45  bool isMarked() const;
46  void mark(void);
47  void unmark(void);
48 
49 protected:
50 
51  unsigned int myIndex0;
52  bool myMarked;
53 };
54 
55 
56 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)