source: osgVisual/include/sky_Silverlining/skySilverlining_cloudLayerSlot.h @ 88

Last change on this file since 88 was 88, checked in by Torben Dannhauer, 14 years ago

Moved memory leak detection from source file to headerfile. Its still in the class but at least not in the source file.

The leak detection works, but the false positives are not stopped.
Use Linux/Valgrind? to make your final leak detection beyond the easy first approach in MSVC

File size: 2.2 KB
Line 
1#pragma once
2/* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer
3 *
4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
10 * You have to aquire licenses for all used proprietary modules.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * OpenSceneGraph Public License for more details.
16 *
17 * This file is based on the OSG example of the Silverlining SDK:
18 * Copyright (c) 2008 Sundog Software, LLC. All rights reserved worldwide.
19*/
20
21#include <SilverLining.h>
22#include <string>
23
24
25namespace osgVisual
26{
27
28/**
29 * \brief This class represents a single cloudlayer slot which contains a cloud layer and corresponding additional information.
30 *
31 * @author Torben Dannhauer
32 * @date  Sep 2009
33 */ 
34class cloudLayerSlot
35{
36        #include <leakDetection.h>
37public:
38        /**
39         * \brief Construtor, which initializes the cloudlayer information with valid default values.
40         *
41         */ 
42        cloudLayerSlot() 
43        {
44                slot_id = -1;
45                used = false;
46                enabled = false;
47                cloudLayerHandle = -1;
48                cloudLayerPointer = NULL;
49                typeName = "";
50        };
51
52        /**
53         * ID of the cloudlayer slot.
54         */ 
55        int slot_id;
56
57        /**
58         * This flag indicates if the cloudlayer slot is in use.
59         *
60         * @todo : Explain diff to 'enabled'.
61         */ 
62        bool used;
63
64        /**
65         * This flag indicates if the cloudlayer slot is enabled.
66         *
67         * @todo : Explain diff to 'used'.
68         */ 
69        bool enabled;
70
71        /**
72         * This variable contains silverlining's cloudlayer handle-ID.
73         */ 
74        int cloudLayerHandle;
75
76        /**
77         * Pointer to the cloudlayer object.
78         */ 
79        SilverLining::CloudLayer *cloudLayerPointer;
80
81        /**
82         * Literal name of the cloudlayer type. e.g. CUMULUS_MEDIOCRIS.
83         */ 
84        std::string typeName;
85};
86
87}       // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.