29 #ifndef __Ogre_Grid2DPageStrategy_H__
30 #define __Ogre_Grid2DPageStrategy_H__
142 void updateDerivedMetrics();
158 virtual void setOrigin(
const Vector3& worldOrigin);
162 virtual void setCellSize(
Real sz);
166 virtual void setLoadRadius(
Real sz);
170 virtual void setHoldRadius(
Real sz);
181 virtual void setCellRangeMinX(
int32 minX);
183 virtual void setCellRangeMinY(
int32 minY);
185 virtual void setCellRangeMaxX(
int32 maxX);
187 virtual void setCellRangeMaxY(
int32 maxY);
203 virtual void convertWorldToGridSpace(
const Vector3& world,
Vector2& grid);
205 virtual void convertGridToWorldSpace(
const Vector2& grid,
Vector3& world);
#define _OgrePagingExport
Specialisation of PageStrategyData for Grid2DPageStrategy.
Grid2DMode
The 2D grid mode.
virtual Real getCellSize() const
Get the size of the cells in the grid.
virtual Real getLoadRadius() const
Get the loading radius.
virtual int32 getCellRangeMaxY() const
get the index range of all cells (values outside this will be ignored)
static const uint32 CHUNK_ID
Standard 2-dimensional vector.
virtual Real getHoldRadius() const
Get the Holding radius.
float Real
Software floating point type.
Grid2DMode mMode
Orientation of the grid.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Class representing a node in the scene graph.
virtual int32 getCellRangeMinY() const
get the index range of all cells (values outside this will be ignored)
static const uint16 CHUNK_VERSION
Grid is in the X/Y plane.
Standard 3-dimensional vector.
Abstract marker class representing the data held against the PagedWorldSection which is specifically...
virtual Real getLoadRadiusInCells()
Get the load radius as a multiple of cells.
Real mHoldRadius
Hold radius.
The PageManager is the entry point through which you load all PagedWorld instances, and the place where PageStrategy instances and factory classes are registered to customise the paging behaviour.
Utility class providing helper methods for reading / writing structured data held in a DataStream...
A viewpoint from which the scene will be rendered.
virtual int32 getCellRangeMaxX() const
get the index range of all cells (values outside this will be ignored)
Page strategy which loads new pages based on a regular 2D grid.
Vector2 mOrigin
Origin (grid-aligned world space)
virtual const Vector3 & getOrigin(const Vector3 &worldOrigin)
Get the origin of the grid in world space.
uint32 PageID
Identifier for a page.
Real mCellSize
Grid cell (page) size.
Vector3 mWorldOrigin
Origin (world space)
virtual Grid2DMode getMode() const
Set the grid alignment mode.
Grid is in the Y/Z plane.
virtual Real getHoldRadiusInCells()
Get the Hold radius as a multiple of cells.
Grid is in the X/Z plane.
virtual int32 getCellRangeMinX() const
get the index range of all cells (values outside this will be ignored)
Real mLoadRadius
Load radius.
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...