vega
pixel_data_manipulator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "vega/types.h"
5 
6 namespace vega {
7  namespace manipulators {
8  // TODO: Properly handle different bit encodings
11 
12  public:
13  static bool allows_vr(const VR& vr) {
14  return vr == vr::OB || vr == vr::OW || vr == vr::OX;
15  }
16 
17  virtual bool is_valid_for(const VR& vr) const override {
19  }
20  };
21  }
22 
23  namespace vr {
24  template <>
25  bool manipulator_is_valid_for<manipulators::PixelDataManipulator>(VR::value_type value);
26  }
27 }
Definition: vr.h:13
Definition: pixel_data_manipulator.h:9
static bool allows_vr(const VR &vr)
Definition: pixel_data_manipulator.h:13
uint16_t value_type
Definition: vr.h:29
A manipulator class for VR that represent fixed size elements like integers and floating point number...
Definition: fixed_size_element_manipulator.h:20
const VR OB
Definition: vr_constants.h:258
Definition: age.h:6
virtual bool is_valid_for(const VR &vr) const override
Definition: pixel_data_manipulator.h:17
const VR OX
Definition: vr_constants.h:433
const VR OW
Definition: vr_constants.h:290