Program Listing for File ramp_block3D.hpp

Return to documentation for file (cosm/repr/ramp_block3D.hpp)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include <memory>

#include "cosm/repr/sim_block3D.hpp"

/*******************************************************************************
 * Namespaces
 ******************************************************************************/
namespace cosm::repr {

/*******************************************************************************
 * Class Definitions
 ******************************************************************************/
class ramp_block3D : public sim_block3D {
 public:
  ramp_block3D(const rtypes::type_uuid& id,
               const rmath::vector3d& dim,
               const rtypes::discretize_ratio& arena_res)
      : sim_block3D(id,
                    dim,
                    arena_res,
                    rutils::color::kBLACK,
                    crepr::block_type::ekRAMP) {}

  std::unique_ptr<base_block3D> clone(void) const override {
    auto tmp = std::make_unique<ramp_block3D>(id(), rdims3D(), arena_res());
    this->sim_block3D::clone_impl(tmp.get());
    return tmp;
  } /* clone() */
};

} /* namespace cosm::repr */