VR-Forces 4.0.4 Class Documentation
include/simTerrainDrawer/debugDrawerNameManager.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00006 #pragma once
00007 
00010 
00011 #include "simTerrainDrawer/simTerrainDrawerDefines.h"
00012 #include "vlutil/vlString.h"
00013 #include "vlutil/vlShmPool.h"
00014 #include <vector>
00015 
00016 class DT_DLL_simTerrainDrawer DtDebugDrawerNameManager 
00017 {
00018 public:
00019    DtDebugDrawerNameManager();
00020    virtual ~DtDebugDrawerNameManager();
00021    virtual void init();
00022    virtual DtString addAndCreateNewName(int type);
00023    virtual void removeName(const DtString& name);
00024 
00025    virtual DtString getMemoryBlockNameByIndex(unsigned int index);
00026 
00027    virtual void lockAccess();
00028    virtual void unlockAccess();
00029    virtual const std::vector<int> getMemoryBlockIndexListByType(int memoryType);
00030 
00031 protected:
00032    struct DtMemoryHeader
00033    {
00034       bool locked;
00035       unsigned int count;
00036       long memoryBlockNames[10];
00037       int memoryBlockTypes[10];
00038    };
00039    
00041    char* myMemoryPtr;
00043    DtMemoryHeader* myHeader;
00045    DtSharedMemoryPoolManager* myManager;
00046    
00047    std::vector<int> myCachedIndexList;
00048    int myCachedOffset;
00049 };
00050 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)