Go to the documentation of this file.
6 #ifndef CNOID_BASE_GL1_SCENE_RENDERER_H
7 #define CNOID_BASE_GL1_SCENE_RENDERER_H
9 #include <cnoid/GLSceneRenderer>
10 #include "exportdecl.h"
20 virtual void setOutputStream(std::ostream& os)
override;
22 virtual void renderCustomGroup(
SgGroup* transform, std::function<
void()> traverseFunction)
override;
23 virtual void renderCustomTransform(
SgTransform* transform, std::function<
void()> traverseFunction)
override;
24 virtual void renderNode(
SgNode* node)
override;
26 virtual void clearNodeDecorations(
int id)
override;
27 virtual const Affine3& currentModelTransform()
const override;
28 virtual const Matrix4& projectionMatrix()
const override;
29 virtual double projectedPixelSizeRatio(
const Vector3& position)
const override;
30 virtual bool initializeGL()
override;
31 virtual void flushGL()
override;
32 virtual const std::string& glVendor()
const override;
33 virtual void setViewport(
int x,
int y,
int width,
int height)
override;
35 virtual const Vector3& pickedPoint()
const override;
36 virtual const SgNodePath& pickedNodePath()
const override;
37 virtual bool isRenderingPickingImage()
const override;
39 virtual void setLightingMode(
LightingMode mode)
override;
42 void setHeadLightLightingFromBackEnabled(
bool on);
43 virtual void setDefaultSmoothShading(
bool on)
override;
44 virtual SgMaterial* defaultMaterial()
override;
45 virtual void enableTexture(
bool on)
override;
46 virtual void setDefaultPointSize(
double size)
override;
47 virtual void setDefaultLineWidth(
double width)
override;
49 virtual void showNormalVectors(
double length)
override;
51 virtual void requestToClearResources()
override;
58 virtual void enableUnusedResourceCheck(
bool on)
override;
60 virtual void setColor(
const Vector3f& color)
override;
61 virtual void setBackFaceCullingMode(
int mode)
override;
62 virtual int backFaceCullingMode()
const override;
65 virtual void doRender()
override;
66 virtual bool doPick(
int x,
int y)
override;
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
LightingMode
Definition: GLSceneRenderer.h:74
Definition: SceneGraph.h:220
Definition: GL1SceneRenderer.h:14
Definition: GLSceneRenderer.h:16
Eigen::Matrix4d Matrix4
Definition: EigenTypes.h:58
Definition: AbstractSceneLoader.h:11
std::function< SgNode *(SgNode *targetNode)> NodeDecorationFunction
Definition: SceneRenderer.h:42
Definition: PolymorphicSceneNodeFunctionSet.h:10
std::vector< SgNode * > SgNodePath
Definition: SceneGraph.h:24
Definition: SceneDrawables.h:18
Definition: SceneGraph.h:157
Eigen::Affine3d Affine3
Definition: EigenTypes.h:62