134 std::cerr <<
"Error when creating SkyDome Object! materialNode is NULL!" << std::endl;
156 std::string nodename = std::string(
"SkyDomeNode for SkyDome " + _name.toUtf8() );
192 output +=
"========================================================================\n";
196 output +=
"Object Contains SkyDome : ";
198 output +=
" Horizontal FOV: " + QString::number(
skyDome_.horizontalFOV());
199 output +=
" Vertical FOV: " + QString::number(
skyDome_.verticalFOV());
200 output +=
" Top Cutoff : " + QString::number(
skyDome_.topOffset());
203 output +=
"========================================================================\n";
virtual void init(SkyDome *_SkyDome=0)
Initialize current object, including all related nodes.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
void update(UpdateType _type=UPDATE_ALL)
Update buffers and data of the scenegraph node.
QString textureFileName()
Returns the texture that will be used.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
std::string name() const
Returns: name of node (needs not be unique)
bool contains(const UpdateType &_type) const
Check if this update contains the given UpdateType.
virtual void cleanup()
Reset current object, including all related nodes.
MaterialNode * materialNode()
get a pointer to the materialnode
DataType dataType() const
SkyDomeNode * skyDomeNode_
Get the scenegraph Node.
bool picked(uint _node_idx)
detect if the node has been picked
SkyDomeObject()
constructor
void setDataType(DataType _type)
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
SkyDome skyDome_
Get all Info for the Object as a string.
QString getObjectinfo()
Get all Info for the Object as a string.
const UpdateType UPDATE_TEXTURE(UpdateTypeSet(1)<< 11)
Textures have changed.
SkyDome & getSkyDome()
Get all Info for the Object as a string.
SkyDomeNode * skyDomeNode()
Get the scenegraph Node.
void setName(QString _name)
Set the name of the Object.
virtual ~SkyDomeObject()
destructor