2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
21 #include "NgonGeneralData.hxx"
22 #include "NgonGridData.hxx"
23 #include "NgonGridMatplotData.hxx"
24 #include "NgonPolylineData.hxx"
25 #include "TriangleMeshData.hxx"
26 #include "TriangleMeshFecData.hxx"
28 #include "graphicObjectProperties.h"
41 m_dataMap = new std::map<std::string, Data3D*>();
45 static DataModel *get()
49 m_me = new DataModel();
57 * Sets a graphic object property
58 * As some set methods allocate memory, the FALSE return value also indicates
59 * a failed allocation for these methods, which overlaps with the non-existing
60 * property return value (also FALSE); returning an int, with -1 for a failed
61 * allocation would possibly solve this problem.
63 BOOL setGraphicObjectProperty(char *_pstID, char* _pstName, void* _dblValue, int numElements);
65 /** Returns a graphic object vector property */
66 void getGraphicObjectProperty(char *_pstID, char* _pstName, void **_pvData);
69 * Returns a graphic object integer property
70 * Implemented in order to avoid returning the address of a
71 * static local variable across too many function calls (see the getProperty
72 * methods of the different Data classes when integer values are returned)
73 * Probably redundant with getGraphicObjectProperty
75 void getGraphicObjectIntProperty(char *_pstID, char* _pstName, void **_pvData);
77 /** Creates a data object */
78 char* createDataObject(char* _pstID, char* _sType);
81 * Deletes a data object
83 void deleteDataObject(char* _pstID);
86 static DataModel *m_me;
88 std::map<std::string, Data3D*> *m_dataMap;