00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef VRS_PRIMITIVESGENERATEDQUERY_H
00018 #define VRS_PRIMITIVESGENERATEDQUERY_H
00019
00020
00021
00022
00023 #include <vrs/monoattribute.h>
00024
00025
00026 namespace VRS
00027 {
00028 class VRS_CORE_API PrimitivesGeneratedQuery : public VRS::MonoAttribute
00029 {
00030 public:
00031
00032 PrimitivesGeneratedQuery(bool enabled = true);
00033
00034 inline unsigned int getPrimitivesGenerated(void) const
00035 {
00036 return this->primitivesGenerated_;
00037 }
00038
00039 inline bool getIsAvaible(void) const
00040 {
00041 return this->isAvailable_;
00042 }
00043
00044 inline unsigned int getQueryID(void) const
00045 {
00046 return this->queryID_;
00047 }
00048
00049 VRS_TYPEINFO(PrimitivesGeneratedQuery, VRS::MonoAttribute)
00050 VRS_SERIALIZABLE(PrimitivesGeneratedQuery)
00051
00052 private:
00053
00054 friend class PrimitivesGeneratedQueryPainter;
00055
00056 private:
00057
00058 mutable unsigned int primitivesGenerated_;
00059 mutable unsigned int queryID_;
00060 mutable bool inUse_;
00061 mutable bool isAvailable_;
00062
00063 };
00064
00065 };
00066
00067 #endif //VRS_PRIMITIVESGENERATEDQUERY_H