Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-06-21 20:18:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-21 20:18:38 +0400
commit8ead648fd1ca35f02901764445afc7b675524b67 (patch)
tree48a86dbc7ad44553d6123637eae5f925404512cf /extern/solid/src/DT_RespTable.h
parentde77b4a9b36cc0f12c8bd458c4a7f662caec38ac (diff)
Spring Cleaning
* removed radiosity render code, DNA and RNA (left in radio render pass options), we'll get GI to replace this probably, better allow baking to vertex colors for people who used this. * removed deprecated solid physics library, sumo integrations and qhull, a dependency * removed ODE, was no longer being build or supported * remove BEOS and AMIGA defines and references in Makefiles.
Diffstat (limited to 'extern/solid/src/DT_RespTable.h')
-rw-r--r--extern/solid/src/DT_RespTable.h139
1 files changed, 0 insertions, 139 deletions
diff --git a/extern/solid/src/DT_RespTable.h b/extern/solid/src/DT_RespTable.h
deleted file mode 100644
index 9a17f562937..00000000000
--- a/extern/solid/src/DT_RespTable.h
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * SOLID - Software Library for Interference Detection
- *
- * Copyright (C) 2001-2003 Dtecta. All rights reserved.
- *
- * This library may be distributed under the terms of the Q Public License
- * (QPL) as defined by Trolltech AS of Norway and appearing in the file
- * LICENSE.QPL included in the packaging of this file.
- *
- * This library may be distributed and/or modified under the terms of the
- * GNU General Public License (GPL) version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * This library is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Commercial use or any other use of this library not covered by either
- * the QPL or the GPL requires an additional license from Dtecta.
- * Please contact info@dtecta.com for enquiries about the terms of commercial
- * use of this library.
- */
-
-#ifndef DT_RESPTABLE_H
-#define DT_RESPTABLE_H
-
-#include <algorithm>
-#include <vector>
-#include <list>
-#include <map>
-#include "GEN_MinMax.h"
-#include "DT_Response.h"
-
-class DT_ResponseList : public std::list<DT_Response> {
-public:
- DT_ResponseList() : m_type(DT_NO_RESPONSE) {}
-
- DT_ResponseType getType() const { return m_type; }
-
- void addResponse(const DT_Response& response)
- {
- if (response.getType() != DT_NO_RESPONSE)
- {
- push_back(response);
- GEN_set_max(m_type, response.getType());
- }
- }
-
- void removeResponse(const DT_Response& response)
- {
- iterator it = std::find(begin(), end(), response);
- if (it != end())
- {
- erase(it);
- m_type = DT_NO_RESPONSE;
- for (it = begin(); it != end(); ++it)
- {
- GEN_set_max(m_type, (*it).getType());
- }
- }
- }
-
- void append(const DT_ResponseList& responseList)
- {
- if (responseList.getType() != DT_NO_RESPONSE)
- {
- const_iterator it;
- for (it = responseList.begin(); it != responseList.end(); ++it)
- {
- addResponse(*it);
- }
- }
- }
-
- DT_Bool operator()(void *a, void *b, const DT_CollData *coll_data) const
- {
- DT_Bool done = DT_CONTINUE;
- const_iterator it;
- for (it = begin(); !done && it != end(); ++it)
- {
- done = (*it)(a, b, coll_data);
- }
- return done;
- }
-
-private:
- DT_ResponseType m_type;
-};
-
-class DT_RespTable {
-private:
- typedef std::map<void *, DT_ResponseClass> T_ObjectMap;
- typedef std::vector<DT_ResponseList *> T_PairTable;
- typedef std::vector<DT_ResponseList> T_SingleList;
-
-public:
- DT_RespTable() : m_responseClass(0) {}
-
- ~DT_RespTable();
-
- DT_ResponseClass genResponseClass();
-
- void setResponseClass(void *object, DT_ResponseClass responseClass);
- DT_ResponseClass getResponseClass(void *object) const;
-
- void clearResponseClass(void *object);
-
- const DT_ResponseList& find(void *object1, void *object2) const;
-
- void addDefault(const DT_Response& response);
- void removeDefault(const DT_Response& response);
-
- void addSingle(DT_ResponseClass responseClass,
- const DT_Response& response);
- void removeSingle(DT_ResponseClass responseClass,
- const DT_Response& response);
-
- void addPair(DT_ResponseClass responseClass1,
- DT_ResponseClass responseClass2,
- const DT_Response& response);
- void removePair(DT_ResponseClass responseClass1,
- DT_ResponseClass responseClass2,
- const DT_Response& response);
-
-private:
- static DT_ResponseList g_emptyResponseList;
-
- T_ObjectMap m_objectMap;
- DT_ResponseClass m_responseClass;
- T_PairTable m_table;
- T_SingleList m_singleList;
- DT_ResponseList m_default;
-};
-
-#endif
-
-
-
-