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 "NgonPolylineData.hxx"
24 #include "TriangleMeshData.hxx"
26 #include "graphicObjectProperties.h"
39 m_dataMap = new std::map<std::string, Data3D*>();
43 static DataModel *get()
47 m_me = new DataModel();
55 * Sets a graphic object property
56 * As some set methods allocate memory, the FALSE return value also indicates
57 * a failed allocation for these methods, which overlaps with the non-existing
58 * property return value (also FALSE); returning an int, with -1 for a failed
59 * allocation would possibly solve this problem.
61 BOOL setGraphicObjectProperty(char *_pstID, char* _pstName, void* _dblValue, int numElements);
63 /** Returns a graphic object vector property */
64 void* getGraphicObjectProperty(char *_pstID, char* _pstName);
67 * Returns a graphic object integer property
68 * Implemented in order to avoid returning the address of a
69 * static local variable across too many function calls (see the getProperty
70 * methods of the different Data classes when integer values are returned)
71 * Possibly redundant with getGraphicObjectProperty
73 int getGraphicObjectIntProperty(char *_pstID, char* _pstName);
75 /** Creates a data object */
76 char* createDataObject(char* _pstID, char* _sType);
79 * Deletes a data object
82 void deleteDataObject(char* _pstID);
85 static DataModel *m_me;
87 std::map<std::string, Data3D*> *m_dataMap;