Move source to src.

This commit is contained in:
Mike Bostock 2012-12-14 10:06:18 -08:00
parent 6f246722f9
commit 2442efc1a6
82 changed files with 13 additions and 236 deletions

34
src/switch.h Normal file
View file

@ -0,0 +1,34 @@
// -*- C++ -*-
#ifndef MBOSTOCK_SWITCH_H
#define MBOSTOCK_SWITCH_H
#include <vector>
#include "block.h"
namespace mbostock {
class Transform;
class Switch : public AxisAlignedBlock {
public:
Switch(const Vector& min, const Vector& max);
virtual bool dynamic() const;
virtual void applyWeight(float w, const Vector& x);
virtual void reset();
void addTarget(Transform& t);
void setActiveMaterial(const Material& m);
private:
std::vector<Transform*> targets_;
const Material* inactiveMaterial_;
const Material* inactiveTopMaterial_;
const Material* activeMaterial_;
};
}
#endif