COPASI API  4.16.103
CLRenderFlattener.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLRenderFlattener.h,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:35:20 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #ifndef CLRenderFlattener_H__
15 #define CLRenderFlattener_H__
16 
17 #ifdef _WIN32
18 // disable warning about unimplemented exceptions in VC++
19 #pragma warning(disable : 4290)
20 #endif // _WIN32
21 
24 
26 
27 class CLLocalStyle;
28 class CLGlobalStyle;
30 
32 {
33 
34 public:
35  /**
36  * static method that takes a const reference to a global render
37  * information object and resolves all references.
38  * The returned object is a new global render information object and the
39  * caller is responsible for freeing the memory once it is no longer used.
40  * If references can not be resolved, an unresolved_reference_exception is
41  * thrown.
42  */
44 
45  /**
46  * static method that takes a const reference to a local render
47  * information object and resolves all references.
48  * The returned object is a new local render information object and the
49  * caller is responsible for freeing the memory once it is no longer used.
50  * If references can not be resolved, an unresolved_reference_exception is
51  * thrown.
52  */
54 
55 protected:
56  /**
57  * Takes a reference to any type of render information and two lists. The
58  * first list is a list of global render information objects, the second list is a list of local render information objects.
59  * If the object that is passed in is a global render information object,
60  * the second list is not considered.
61  */
63 
64  /**
65  * Method takes a global style object and converts it to a local style
66  * object.
67  * The caller is responsible for freeing the memory of the returned
68  * object once it is no longer needed.
69  */
71 };
72 
73 #endif // CLRenderFlattener_H__
static CLLocalStyle * convertGlobalToLocalStyle(const CLGlobalStyle *pGlobal)
static CLGlobalRenderInformation * flatten_render_information(const CLGlobalRenderInformation &globalRenderInformation, const CCopasiVector< CLGlobalRenderInformation > &globalList)
static CLRenderInformationBase * flatten(const CLRenderInformationBase &renderInformation, const CCopasiVector< CLGlobalRenderInformation > &globalList, const CCopasiVector< CLLocalRenderInformation > &localList=CCopasiVector< CLLocalRenderInformation >())