Removed OgrePrerequisites.h from main library.
This commit is contained in:
@ -19,7 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#ifndef __VolumeIterator_H__
|
||||
#define __VolumeIterator_H__
|
||||
|
||||
#include "OgrePrerequisites.h"
|
||||
#include "boost/cstdint.hpp"
|
||||
|
||||
|
||||
#include "TypeDef.h"
|
||||
|
||||
@ -33,96 +34,96 @@ namespace Ogre
|
||||
VolumeIterator(Volume& volume);
|
||||
~VolumeIterator();
|
||||
|
||||
void setVoxel(uchar value);
|
||||
uchar getVoxel(void);
|
||||
void setVoxel(boost::uint8_t value);
|
||||
boost::uint8_t getVoxel(void);
|
||||
|
||||
uchar getVoxelAt(const uint xPosition, const uint yPosition, const uint zPosition) const;
|
||||
void setVoxelAt(const uint xPosition, const uint yPosition, const uint zPosition, const uchar value);
|
||||
boost::uint8_t getVoxelAt(const boost::uint16_t xPosition, const boost::uint16_t yPosition, const boost::uint16_t zPosition) const;
|
||||
void setVoxelAt(const boost::uint16_t xPosition, const boost::uint16_t yPosition, const boost::uint16_t zPosition, const boost::uint8_t value);
|
||||
|
||||
float getAveragedVoxelAt(const uint xPosition, const uint yPosition, const uint zPosition, uint size) const;
|
||||
float getAveragedVoxelAt(const boost::uint16_t xPosition, const boost::uint16_t yPosition, const boost::uint16_t zPosition, boost::uint16_t size) const;
|
||||
|
||||
//FIXME - this shouldn't return float vector
|
||||
Vector3 getCentralDifferenceGradient(void) const;
|
||||
Vector3 getAveragedCentralDifferenceGradient(void) const;
|
||||
Vector3 getSobelGradient(void) const;
|
||||
|
||||
uint getPosX(void);
|
||||
uint getPosY(void);
|
||||
uint getPosZ(void);
|
||||
boost::uint16_t getPosX(void);
|
||||
boost::uint16_t getPosY(void);
|
||||
boost::uint16_t getPosZ(void);
|
||||
|
||||
void setPosition(uint xPos, uint yPos, uint zPos);
|
||||
void setValidRegion(uint xFirst, uint yFirst, uint zFirst, uint xLast, uint yLast, uint zLast);
|
||||
void setPosition(boost::uint16_t xPos, boost::uint16_t yPos, boost::uint16_t zPos);
|
||||
void setValidRegion(boost::uint16_t xFirst, boost::uint16_t yFirst, boost::uint16_t zFirst, boost::uint16_t xLast, boost::uint16_t yLast, boost::uint16_t zLast);
|
||||
void moveForwardInRegion(void);
|
||||
|
||||
bool isValidForRegion(void);
|
||||
|
||||
uchar peekVoxel1nx1ny1nz(void) const;
|
||||
uchar peekVoxel1nx1ny0pz(void) const;
|
||||
uchar peekVoxel1nx1ny1pz(void) const;
|
||||
uchar peekVoxel1nx0py1nz(void) const;
|
||||
uchar peekVoxel1nx0py0pz(void) const;
|
||||
uchar peekVoxel1nx0py1pz(void) const;
|
||||
uchar peekVoxel1nx1py1nz(void) const;
|
||||
uchar peekVoxel1nx1py0pz(void) const;
|
||||
uchar peekVoxel1nx1py1pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1ny1nz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1ny0pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1ny1pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx0py1nz(void) const;
|
||||
boost::uint8_t peekVoxel1nx0py0pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx0py1pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1py1nz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1py0pz(void) const;
|
||||
boost::uint8_t peekVoxel1nx1py1pz(void) const;
|
||||
|
||||
uchar peekVoxel0px1ny1nz(void) const;
|
||||
uchar peekVoxel0px1ny0pz(void) const;
|
||||
uchar peekVoxel0px1ny1pz(void) const;
|
||||
uchar peekVoxel0px0py1nz(void) const;
|
||||
uchar peekVoxel0px0py0pz(void) const;
|
||||
uchar peekVoxel0px0py1pz(void) const;
|
||||
uchar peekVoxel0px1py1nz(void) const;
|
||||
uchar peekVoxel0px1py0pz(void) const;
|
||||
uchar peekVoxel0px1py1pz(void) const;
|
||||
boost::uint8_t peekVoxel0px1ny1nz(void) const;
|
||||
boost::uint8_t peekVoxel0px1ny0pz(void) const;
|
||||
boost::uint8_t peekVoxel0px1ny1pz(void) const;
|
||||
boost::uint8_t peekVoxel0px0py1nz(void) const;
|
||||
boost::uint8_t peekVoxel0px0py0pz(void) const;
|
||||
boost::uint8_t peekVoxel0px0py1pz(void) const;
|
||||
boost::uint8_t peekVoxel0px1py1nz(void) const;
|
||||
boost::uint8_t peekVoxel0px1py0pz(void) const;
|
||||
boost::uint8_t peekVoxel0px1py1pz(void) const;
|
||||
|
||||
uchar peekVoxel1px1ny1nz(void) const;
|
||||
uchar peekVoxel1px1ny0pz(void) const;
|
||||
uchar peekVoxel1px1ny1pz(void) const;
|
||||
uchar peekVoxel1px0py1nz(void) const;
|
||||
uchar peekVoxel1px0py0pz(void) const;
|
||||
uchar peekVoxel1px0py1pz(void) const;
|
||||
uchar peekVoxel1px1py1nz(void) const;
|
||||
uchar peekVoxel1px1py0pz(void) const;
|
||||
uchar peekVoxel1px1py1pz(void) const;
|
||||
boost::uint8_t peekVoxel1px1ny1nz(void) const;
|
||||
boost::uint8_t peekVoxel1px1ny0pz(void) const;
|
||||
boost::uint8_t peekVoxel1px1ny1pz(void) const;
|
||||
boost::uint8_t peekVoxel1px0py1nz(void) const;
|
||||
boost::uint8_t peekVoxel1px0py0pz(void) const;
|
||||
boost::uint8_t peekVoxel1px0py1pz(void) const;
|
||||
boost::uint8_t peekVoxel1px1py1nz(void) const;
|
||||
boost::uint8_t peekVoxel1px1py0pz(void) const;
|
||||
boost::uint8_t peekVoxel1px1py1pz(void) const;
|
||||
|
||||
private:
|
||||
//The current volume
|
||||
Volume& mVolume;
|
||||
|
||||
//The current position in the volume
|
||||
uint mXPosInVolume;
|
||||
uint mYPosInVolume;
|
||||
uint mZPosInVolume;
|
||||
boost::uint16_t mXPosInVolume;
|
||||
boost::uint16_t mYPosInVolume;
|
||||
boost::uint16_t mZPosInVolume;
|
||||
|
||||
//The position of the current block
|
||||
uint mXBlock;
|
||||
uint mYBlock;
|
||||
uint mZBlock;
|
||||
boost::uint16_t mXBlock;
|
||||
boost::uint16_t mYBlock;
|
||||
boost::uint16_t mZBlock;
|
||||
|
||||
//The offset into the current block
|
||||
uint mXPosInBlock;
|
||||
uint mYPosInBlock;
|
||||
uint mZPosInBlock;
|
||||
boost::uint16_t mXPosInBlock;
|
||||
boost::uint16_t mYPosInBlock;
|
||||
boost::uint16_t mZPosInBlock;
|
||||
|
||||
//Other current position information
|
||||
uchar* mCurrentVoxel;
|
||||
ulong mBlockIndexInVolume;
|
||||
ulong mVoxelIndexInBlock;
|
||||
boost::uint8_t* mCurrentVoxel;
|
||||
boost::uint32_t mBlockIndexInVolume;
|
||||
boost::uint32_t mVoxelIndexInBlock;
|
||||
|
||||
uint mXRegionFirst;
|
||||
uint mYRegionFirst;
|
||||
uint mZRegionFirst;
|
||||
uint mXRegionLast;
|
||||
uint mYRegionLast;
|
||||
uint mZRegionLast;
|
||||
boost::uint16_t mXRegionFirst;
|
||||
boost::uint16_t mYRegionFirst;
|
||||
boost::uint16_t mZRegionFirst;
|
||||
boost::uint16_t mXRegionLast;
|
||||
boost::uint16_t mYRegionLast;
|
||||
boost::uint16_t mZRegionLast;
|
||||
|
||||
uint mXRegionFirstBlock;
|
||||
uint mYRegionFirstBlock;
|
||||
uint mZRegionFirstBlock;
|
||||
uint mXRegionLastBlock;
|
||||
uint mYRegionLastBlock;
|
||||
uint mZRegionLastBlock;
|
||||
boost::uint16_t mXRegionFirstBlock;
|
||||
boost::uint16_t mYRegionFirstBlock;
|
||||
boost::uint16_t mZRegionFirstBlock;
|
||||
boost::uint16_t mXRegionLastBlock;
|
||||
boost::uint16_t mYRegionLastBlock;
|
||||
boost::uint16_t mZRegionLastBlock;
|
||||
|
||||
bool mIsValidForRegion;
|
||||
};
|
||||
|
Reference in New Issue
Block a user