Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/scene_graph/SceneHash.h
| Show All 20 Lines | |||||
| #ifndef __FREESTYLE_SCENE_HASH_H__ | #ifndef __FREESTYLE_SCENE_HASH_H__ | ||||
| #define __FREESTYLE_SCENE_HASH_H__ | #define __FREESTYLE_SCENE_HASH_H__ | ||||
| /** \file blender/freestyle/intern/scene_graph/SceneHash.h | /** \file blender/freestyle/intern/scene_graph/SceneHash.h | ||||
| * \ingroup freestyle | * \ingroup freestyle | ||||
| */ | */ | ||||
| #include "IndexedFaceSet.h" | #include "IndexedFaceSet.h" | ||||
| #include "NodeSceneLayer.h" | #include "NodeViewLayer.h" | ||||
| #include "NodeCamera.h" | #include "NodeCamera.h" | ||||
| #include "SceneVisitor.h" | #include "SceneVisitor.h" | ||||
| #include "BLI_sys_types.h" | #include "BLI_sys_types.h" | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #endif | #endif | ||||
| namespace Freestyle { | namespace Freestyle { | ||||
| class SceneHash : public SceneVisitor | class SceneHash : public SceneVisitor | ||||
| { | { | ||||
| public: | public: | ||||
| inline SceneHash() : SceneVisitor() | inline SceneHash() : SceneVisitor() | ||||
| { | { | ||||
| _sum = 1; | _sum = 1; | ||||
| } | } | ||||
| virtual ~SceneHash() {} | virtual ~SceneHash() {} | ||||
| VISIT_DECL(NodeCamera) | VISIT_DECL(NodeCamera) | ||||
| VISIT_DECL(NodeSceneLayer) | VISIT_DECL(NodeViewLayer) | ||||
| VISIT_DECL(IndexedFaceSet) | VISIT_DECL(IndexedFaceSet) | ||||
| string toString(); | string toString(); | ||||
| inline bool match() { | inline bool match() { | ||||
| return _sum == _prevSum; | return _sum == _prevSum; | ||||
| } | } | ||||
| Show All 22 Lines | |||||