source: trunk/packages/vizservers/nanovis/Renderable.cpp @ 2825

Last change on this file since 2825 was 2798, checked in by ldelgass, 13 years ago

Add emacs mode magic line in preparation for indentation cleanup

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ----------------------------------------------------------------------
4 * Renderable.cpp: abstract class, a drawable thing
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16
17
18#include "Renderable.h"
19
20Renderable::Renderable(){}
21Renderable::Renderable(Vector3 loc):
22    location(loc),
23    enabled(true)
24{
25}
26
27Renderable::~Renderable(){}
28 
29void Renderable::move(Vector3 new_loc) { location = new_loc; }
30
31void Renderable::enable() { enabled = true; }
32void Renderable::disable() { enabled = false; }
33bool Renderable::is_enabled() { return enabled; }
34
Note: See TracBrowser for help on using the repository browser.