58 Pylon::PixelType getCameraPixelType();
60 int getCameraPixelSize();
62 long getNeededBufferSize();
64 void acquisitionStart();
66 void acquisitionStop();
72 std::string getFormatString();
74 bool omitDoubleFrames();
76 double getResultingFrameRateAbs();
87 std::string getType(
const std::string &name);
89 std::string getInfo(
const std::string &name);
91 std::string getValue(
const std::string &name);
93 int isVolatile(
const std::string &propertyName);
97 void addToPropertyList(std::vector<std::string> &ps,
const GenApi::CNodePtr& node);
100 GenApi::INode *getNode(std::string name);
109 template <
typename NODE,
typename RET>
111 return node -> GetValue();
115 template <
typename NODE,
typename RET>
117 return node -> GetIntValue();
121 template <
typename NODE,
typename VAL>
123 node -> SetValue(value,
true);
128 template <
typename NODE,
typename VAL>
130 node -> FromString(value.c_str(),
true);
135 template <
typename NODE,
typename VAL>
137 node -> SetIntValue(value,
true);
142 template <
typename OBJ,
typename NODE,
typename VAL>
144 GenApi::INode* node =
object -> GetNodeMap() -> GetNode(parameter.c_str());
146 DEBUG_LOG(
"There is no parameter called '" << parameter <<
"'")
152 node2 = dynamic_cast<NODE*>(node);
153 }
catch (std::exception &e){
154 DEBUG_LOG (
"Could not cast node '"<< parameter <<
"' to desired type2")
157 if(!GenApi::IsWritable(node2)){
158 DEBUG_LOG(
"Parameter called '" << parameter <<
"' is not writable.")
163 setNodeValue<NODE, VAL>(node2, value);
166 catch (GenICam::GenericException &e) {
167 std::cerr << e.what() << std::endl;
173 template <
typename SOURCE,
typename NODE,
typename RET>
175 GenApi::INode* node = source -> GetNodeMap() -> GetNode(param.c_str());
181 NODE* node2 = dynamic_cast<NODE*>(node);
185 if(!GenApi::IsReadable(node2)){
188 return getNodeValue<NODE, RET>(node2);
189 }
catch (std::exception &e){
196 Pylon::IPylonDevice* device, std::string parameter);
ICLIO_API std::string getParameterValueString(Pylon::IPylonDevice *device, std::string parameter)
returns a string representation of the value of a parameter of the camera.
undocument this line if you encounter any issues!
Definition: Any.h:37
Interruptable * m_Interu
the Interruptable that provides interruption for the camera.
Definition: PylonCameraOptions.h:80
#define DEBUG_LOG(x)
Definition: Macros.h:57
RET getParameterValueOf(SOURCE *source, std::string param)
get the value of a parameter of a specific type from a spec. source (camera/grabber)
Definition: PylonCameraOptions.h:174
Pylon::IPylonDevice * m_Camera
The camera.
Definition: PylonCameraOptions.h:82
bool m_OmitDoubleFrames
whether double frames should be omitted.
Definition: PylonCameraOptions.h:84
bool setParameterValueOf(OBJ *object, std::string parameter, VAL value)
set the value of a parameter of a specific type on a specific source (camera/grabber)
Definition: PylonCameraOptions.h:143
#define ICLIO_API
Definition: CompatMacros.h:176
void setNodeValue(NODE *node, VAL value)
template function to set the value of an IValue-subclass
Definition: PylonCameraOptions.h:122
Utility Structure.
Definition: PylonUtils.h:202
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Base class for Exception handling in the ICL.
Definition: Exception.h:42
RET getNodeValue(NODE *node)
template function to get the value of an IValue-subclass
Definition: PylonCameraOptions.h:110
Represents a single property.
Definition: Configurable.h:200
This is a helper class for Pylon camera settings.
Definition: PylonCameraOptions.h:44