SoProfilerTopEngine.h Source File

| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

SoProfilerTopEngine.h
1 #ifndef COIN_SOPROFILERTOPENGINE_H
2 #define COIN_SOPROFILERTOPENGINE_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/engines/SoSubEngine.h>
28 #include <Inventor/engines/SoEngine.h>
29 #include <Inventor/engines/SoEngineOutput.h>
30 #include <Inventor/fields/SoSFInt32.h>
31 #include <Inventor/fields/SoSFFloat.h>
32 #include <Inventor/fields/SoSFEnum.h>
33 #include <Inventor/fields/SoMFName.h>
34 #include <Inventor/fields/SoMFEnum.h>
35 #include <Inventor/fields/SoMFTime.h>
36 #include <Inventor/fields/SoMFUInt32.h>
37 #include <Inventor/tools/SbPimplPtr.h>
38
39 class SoProfilerTopEngineP;
40
41 class COIN_DLL_API SoProfilerTopEngine : public SoEngine {
42 typedef SoEngine inherited;
43 SO_ENGINE_HEADER(SoProfilerTopEngine);
44
45 public:
46 static void initClass(void);
47 SoProfilerTopEngine(void);
48
49 enum Column {
50 NAME,
51 COUNT,
52 TIME_SECS,
53 TIME_SECS_MAX,
54 TIME_SECS_AVG,
55 TIME_MSECS,
56 TIME_MSECS_MAX,
57 TIME_MSECS_AVG,
58 TIME_PERCENT,
59 TIME_PERCENT_MAX,
60 TIME_PERCENT_AVG
61 };
62
63 enum SortOrder {
64 TIME_DEC,
65 TIME_MAX_DEC,
66 TIME_AVG_DEC,
67 COUNT_DEC_TIME_DEC,
68 COUNT_DEC_TIME_MAX_DEC,
69 COUNT_DEC_TIME_AVG_DEC,
70 ALPHANUMERIC_INC
71 };
72
73 // inputs
74 SoMFName statisticsNames;
75 SoMFTime statisticsTimings;
76 SoMFTime statisticsTimingsMax;
77 SoMFUInt32 statisticsCounts;
78
79 // output-related
80 SoMFEnum columns; // [ NAME, COUNT, TIME_MSECS, TIME_PERCENT ]
81 SoSFEnum sortOrder; // TIME_DEC
82 SoSFInt32 maxLines; // 16
83 SoSFFloat decay; // 0.0 ([0.0 - 1.0>)
84
85 // result
86 SoEngineOutput prettyText; // SoMFString
87
88 protected:
89 virtual ~SoProfilerTopEngine(void);
90
91 virtual void evaluate(void);
92
93 private:
94 SbPimplPtr<SoProfilerTopEngineP> pimpl;
95
96 SoProfilerTopEngine(const SoProfilerTopEngine & rhs); // disable
97 SoProfilerTopEngine & operator = (const SoProfilerTopEngine & rhs); // disable
98
99 }; // SoProfilerTopEngine
100
101 #endif // !COIN_SOPROFILERTOPENGINE_H
SoEngine
SoEngine is the base class for Coin engines.Engines enables the application programmers to make compl...
Definition: SoEngine.h:34
SoSFEnum
The SoSFEnum class is a container for an enum value.This field is used where nodes, engines or other field containers needs to store one particular value out of an enumerated set.
Definition: SoSFEnum.h:31
SoSFInt32
The SoSFInt32 class is a container for a 32-bit integer value.This field is used where nodes...
Definition: SoSFInt32.h:30
SoMFEnum
The SoMFEnum class is a container for a set of enumerated values.This field is used where nodes...
Definition: SoMFEnum.h:30
SoMFUInt32
The SoMFUInt32 class is a container for 32-bit unsigned integer values.This field is used where nodes...
Definition: SoMFUInt32.h:30
SoEngineOutput
The SoEngineOutput class is the output slots in SoEngine instances.SoEngineOutput has methods for con...
Definition: SoEngineOutput.h:36
SoMFName
The SoMFName class is a container for SbName values.This field is used where nodes, engines or other field containers needs to store arrays of names.
Definition: SoMFName.h:31
SoEngine::evaluate
virtual void evaluate(void)=0
SoSFFloat
The SoSFFloat class is a container for a floating point value.This field is used where nodes...
Definition: SoSFFloat.h:30
SoMFTime
The SoMFTime class is a container for SbTime values.This field is used where nodes, engines or other field containers needs to store multiple time representations.
Definition: SoMFTime.h:31

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.