iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ShapeRendererBasic.H File Reference
#include <nrt/Graphics/ShapeRenderer.H>
#include <nrt/Core/Image/PixelTypes.H>
#include <nrt/Eigen/Eigen.H>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>
#include <GL/glx.h>

Author
Laurent Itti

License

// ////////////////////////////////////////////////////////////////////////
//              The iLab Neuromorphic Robotics Toolkit (NRT)             //
// Copyright 2010-2012 by the University of Southern California (USC)    //
//                          and the iLab at USC.                         //
//                                                                       //
//                iLab - University of Southern California               //
//                Hedco Neurociences Building, Room HNB-10               //
//                    Los Angeles, Ca 90089-2520 - USA                   //
//                                                                       //
//      See http://ilab.usc.edu for information about this project.      //
// ////////////////////////////////////////////////////////////////////////
// This file is part of The iLab Neuromorphic Robotics Toolkit.          //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is free software: you can      //
// redistribute it and/or modify it under the terms of the GNU General   //
// Public License as published by the Free Software Foundation, either   //
// version 3 of the License, or (at your option) any later version.      //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is distributed in the hope     //
// that it will be useful, but WITHOUT ANY WARRANTY; without even the    //
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       //
// PURPOSE.  See the GNU General Public License for more details.        //
//                                                                       //
// You should have received a copy of the GNU General Public License     //
// along with The iLab Neuromorphic Robotics Toolkit.  If not, see       //
// <http://www.gnu.org/licenses/>.                                       //
// ////////////////////////////////////////////////////////////////////////

Definition in file ShapeRendererBasic.H.

Go to the source code of this file.

Classes

class  nrt::graphics::ShapeRendererBasic
 Render Shape objects into a basic X11/OpenGL window. More...
 

Namespaces

 nrt
 Reserved namespace for NRT core classes and functions.
 
 nrt::graphics::shaperendererbasic
 Namespace for ShapeRenderer parameters.
 

Macros

#define GL_GLEXT_PROTOTYPES   1
 
#define GL3_PROTOTYPES   1
 

Functions

 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER_WITH_CALLBACK (dims, nrt::Dims< nrt::int32 >,"Rendered display dimemsions in pixels", nrt::Dims< nrt::int32 >(640, 480), ParamCateg)
 Parameter definition for display dims.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (wireframe, bool,"Use wireframe instead of full-3D display", false, ParamCateg)
 Parameter definition for wireframe.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (windowtitle, std::string,"Title of the window","ShapeRendererBasic Window", ParamCateg)
 Parameter definition for window title.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (fogdensity, float,"Fog density between 0.0 and 1.0 (value 0.0 turns off fog effects)", 0.0F, ParamCateg)
 Parameter definition for fog density.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (fogcolor, nrt::PixRGB< nrt::byte >,"Fog color RGB (only applies if fog-density is > 0.0)", nrt::PixRGB< nrt::byte >(128, 128, 128), ParamCateg)
 Parameter definition for fog color.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (detail, unsigned int,"Detail level used to render spheres, cylinders, etc. Larger values create more ""subdivisions, which is slower to render but looks smoother.", 30U, ParamCateg)
 Parameter definition for detail.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (ambientlight, nrt::PixRGB< nrt::byte >,"Ambient light color and intensity (R,G,B)", nrt::PixRGB< nrt::byte >(100, 100, 100), ParamCateg)
 Parameter definition for light ambient.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (diffuselight, nrt::PixRGB< nrt::byte >,"Diffuse light color and intensity (R,G,B)", nrt::PixRGB< nrt::byte >(255, 255, 255), ParamCateg)
 Parameter definition for light diffuse.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (specularlight, nrt::PixRGB< nrt::byte >,"Specular light color and intensity (R,G,B)", nrt::PixRGB< nrt::byte >(255, 255, 255), ParamCateg)
 Parameter definition for light specular.
 
 nrt::graphics::shaperendererbasic::NRT_DECLARE_PARAMETER (lightposition, Eigen::Vector3f,"Light position (X,Y,Z)", Eigen::Vector3f(-50.0F, 0.0F, 100.0F), ParamCateg)
 Parameter definition for light diffuse.
 

Variables

static nrt::ParameterCategory const nrt::graphics::shaperendererbasic::ParamCateg ("ShapeRendererBasic Options")
 Parameter category definition.