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);
Grid is in the X/Y plane.
A viewpoint from which the scene will be rendered.
Grid2DMode mMode
Orientation of the grid.
virtual Real getHoldRadius() const
Get the Holding radius.
Specialisation of PageStrategyData for Grid2DPageStrategy.
float Real
Software floating point type.
virtual const Vector3 & getOrigin(const Vector3 &worldOrigin)
Get the origin of the grid in world space.
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.
virtual Grid2DMode getMode() const
Set the grid alignment mode.
Vector2 mOrigin
Origin (grid-aligned world space)
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.
Class representing a node in the scene graph.
virtual Real getHoldRadiusInCells()
Get the Hold radius as a multiple of cells.
virtual Real getLoadRadius() const
Get the loading radius.
virtual Real getCellSize() const
Get the size of the cells in the grid.
static const uint16 CHUNK_VERSION
Vector3 mWorldOrigin
Origin (world space)
static const uint32 CHUNK_ID
Real mLoadRadius
Load radius.
Standard 2-dimensional vector.
Real mHoldRadius
Hold radius.
#define _OgrePagingExport
Grid2DMode
The 2D grid mode.
Utility class providing helper methods for reading / writing structured data held in a DataStream...
Grid is in the Y/Z plane.
Standard 3-dimensional vector.
Abstract marker class representing the data held against the PagedWorldSection which is specifically ...
virtual int32 getCellRangeMaxY() const
get the index range of all cells (values outside this will be ignored)
virtual int32 getCellRangeMinX() const
get the index range of all cells (values outside this will be ignored)
Real mCellSize
Grid cell (page) size.
virtual int32 getCellRangeMinY() const
get the index range of all cells (values outside this will be ignored)
Grid is in the X/Z plane.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...
virtual Real getLoadRadiusInCells()
Get the load radius as a multiple of cells.
uint32 PageID
Identifier for a page.