blob: 3a93875f43ce71b92af1cc3fda4fec180fdd2f54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
//-*-C++-*-
/*
**************************************************************************
description
--------------------
copyright : (C) 2000-2002 by Andreas Zehender
email : zehender@kde.org
**************************************************************************
**************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
**************************************************************************/
#ifndef PMSCENE_H
#define PMSCENE_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "pmcompositeobject.h"
#include "pmrendermode.h"
/**
* Class for povray scenes.
*
* A document has a PMScene object as top level object. A PMScene can't have
* a parent
*/
class PMScene : public PMCompositeObject
{
typedef PMCompositeObject Base;
public:
/**
* Creates an empty PMScene
*/
PMScene( PMPart* part );
/**
* Copy constructor
*/
PMScene( const PMScene& s );
/**
* deletes the scene and all objects
*/
virtual ~PMScene( );
/** */
virtual PMMetaObject* tqmetaObject( ) const;
/** */
virtual void cleanUp( ) const;
/** */
virtual PMObject* copy( ) const { return new PMScene( *this ); }
/** */
virtual TQString description( ) const;
/** */
virtual TQString pixmap( ) const { return TQString( "pmscene" ); }
/** */
virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a pointer to the list of render modes
* @see PMRenderMode
*/
PMRenderModeList* renderModes( ) { return &m_renderModes; }
/**
* Returns the scenes visibility level
*/
int visibilityLevel( ) const { return m_visibilityLevel; }
/**
* Sets the visibility level
*/
void setVisibilityLevel( int l ) { m_visibilityLevel = l; }
private:
PMRenderModeList m_renderModes;
int m_visibilityLevel;
static PMMetaObject* s_pMetaObject;
};
#endif
|