![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The PtzController class can be created for a device that has pan, tilt, and/or zoom functionality. More...
#include <PtzController.h>
Public Types | |
enum | IrisDirections { IrisDirections::Stop, IrisDirections::Close, IrisDirections::Open } |
Values that represent iris directions. More... | |
enum | FocusDirections { FocusDirections::Stop, FocusDirections::Far, FocusDirections::Near } |
Values that represent focus directions. More... | |
enum | ZoomDirections { ZoomDirections::None, ZoomDirections::Stop, ZoomDirections::In, ZoomDirections::Out } |
Values that represent zoom directions. More... | |
Public Member Functions | |
PtzController (VxSdk::IVxPtzController *ptzController) | |
Constructor. More... | |
virtual | ~PtzController () |
Destructor. More... | |
!PtzController () | |
Finaliser. More... | |
Results::Value | AbsoluteMove (int positionX, int positionY) |
Move to the absolute position of the given coordinates. More... | |
Results::Value | AbsoluteMove (int positionX, int positionY, int positionZ) |
Move to the absolute position of the given coordinates. More... | |
Results::Value | AbsolutePan (int positionX) |
Pan to the absolute position of the given coordinate. More... | |
Results::Value | AbsoluteTilt (int positionY) |
Tilt to the absolute position of the given coordinate. More... | |
Results::Value | AbsoluteZoom (int positionZ) |
Zoom to the absolute position of the given coordinates. More... | |
Results::Value | AddPreset (int index) |
Creates a new preset using the current PTZ spatial coordinates. More... | |
Results::Value | ContinuousFocus (FocusDirections nearFar) |
Focus near or far until the user wants to stop. More... | |
Results::Value | ContinuousIris (IrisDirections openClose) |
Open or close the iris until the user wants to stop. More... | |
Results::Value | ContinuousMove (int speedX, int speedY, ZoomDirections inOut) |
Continuously move the field of view at the given speed until stopped. More... | |
CPPCli::Results::Value | DeletePreset (Preset^ preset) |
Deletes a preset from the system. More... | |
System::Collections::Generic::List< Pattern^ >^ | GetPatterns () |
Get the available patterns. More... | |
System::Collections::Generic::List< Preset^ >^ | GetPresets () |
Get the available presets. More... | |
Results::Value | Refresh () |
Update this instances properties. More... | |
Results::Value | RelativeMove (int deltaX, int deltaY, int deltaZ) |
Moves the camera position relative to the current position. More... | |
Results::Value | RelativePercentageMove (int percentageX, int percentageY) |
Moves the camera position within a percentage relative to the device’s current field of view. More... | |
Results::Value | RepositionPreset (Preset^ preset) |
Repositions a preset to the current PTZ spatial coordinates. More... | |
Results::Value | Stop () |
Stops all PTZ actions. More... | |
Results::Value | TriggerPattern (Pattern^ pattern) |
Trigger a pattern. More... | |
Results::Value | TriggerPreset (int index) |
Triggers a preset by index. More... | |
Results::Value | TriggerPreset (Preset^ preset) |
Trigger a preset. More... | |
Results::Value | TriggerRefresh () |
Triggers a refresh of this PtzController on the VideoXpert system; updating its patterns and presets based on the current camera configuration. More... | |
Package Functions | |
PtzLimits^ | _GetPtzLimits () |
PtzLock^ | _GetPtzLock () |
Package Attributes | |
VxSdk::IVxPtzController * | _ptzController |
Properties | |
bool | IsLocked [get] |
Gets a value indicating whether the PTZ control is locked. More... | |
int | LockExpireTime [get] |
Gets the time remaining (in seconds) until the PTZ lock expires. More... | |
PtzLimits^ | PTZLimits [get] |
Gets the PtzLimits for this ptz controller. More... | |
PtzLock^ | PTZLock [get] |
Gets the PtzLock associated with this ptz controller. More... | |
int | X [get] |
Gets the X coordinate absolute position (pan). More... | |
int | Y [get] |
Gets the Y coordinate absolute position (tilt). More... | |
int | Z [get] |
Gets the Z coordinate absolute position (zoom). More... | |
The PtzController class can be created for a device that has pan, tilt, and/or zoom functionality.
Definition at line 15 of file PtzController.h.
|
strong |
Values that represent focus directions.
Enumerator | |
---|---|
Stop |
Stop focus movement. |
Far |
Focus far. |
Near |
Focus near. |
Definition at line 36 of file PtzController.h.
|
strong |
Values that represent iris directions.
Enumerator | |
---|---|
Stop |
Stop iris movement. |
Close |
Close the iris. |
Open |
Open the iris. |
Definition at line 21 of file PtzController.h.
|
strong |
Values that represent zoom directions.
Enumerator | |
---|---|
None |
Do not perform a zoom action. |
Stop |
Stop zoom movement. |
In |
Zoom in. |
Out |
Zoom out. |
Definition at line 51 of file PtzController.h.
CPPCli::PtzController::PtzController | ( | VxSdk::IVxPtzController * | ptzController | ) |
Constructor.
ptzController | The ptz controller. |
Definition at line 8 of file PtzController.cpp.
|
inlinevirtual |
Destructor.
Definition at line 75 of file PtzController.h.
CPPCli::PtzController::!PtzController | ( | ) |
Finaliser.
Definition at line 12 of file PtzController.cpp.
|
package |
Definition at line 177 of file PtzController.cpp.
|
package |
Definition at line 189 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AbsoluteMove | ( | int | positionX, |
int | positionY | ||
) |
Move to the absolute position of the given coordinates.
positionX | The X coordinate absolute position (pan). |
positionY | The Y coordinate absolute position (tilt). |
Definition at line 17 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AbsoluteMove | ( | int | positionX, |
int | positionY, | ||
int | positionZ | ||
) |
Move to the absolute position of the given coordinates.
positionX | The X coordinate absolute position (pan). |
positionY | The Y coordinate absolute position (tilt). |
positionZ | The Z coordinate absolute position (zoom). |
Definition at line 23 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AbsolutePan | ( | int | positionX | ) |
Pan to the absolute position of the given coordinate.
positionX | The X coordinate absolute position (pan). |
Definition at line 29 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AbsoluteTilt | ( | int | positionY | ) |
Tilt to the absolute position of the given coordinate.
positionY | The Y coordinate absolute position (tilt). |
Definition at line 35 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AbsoluteZoom | ( | int | positionZ | ) |
Zoom to the absolute position of the given coordinates.
positionZ | The Z coordinate absolute position (zoom). |
Definition at line 41 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::AddPreset | ( | int | index | ) |
Creates a new preset using the current PTZ spatial coordinates.
index | The unique index value for the new preset. |
Definition at line 47 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::ContinuousFocus | ( | FocusDirections | nearFar | ) |
Focus near or far until the user wants to stop.
nearFar | The direction to focus. |
Definition at line 53 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::ContinuousIris | ( | IrisDirections | openClose | ) |
Open or close the iris until the user wants to stop.
openClose | The direction to change the iris. |
Definition at line 59 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::ContinuousMove | ( | int | speedX, |
int | speedY, | ||
ZoomDirections | inOut | ||
) |
Continuously move the field of view at the given speed until stopped.
speedX | Pan speed. Negative values pan left, positive values pan right. |
speedY | Tilt speed. Negative values tilt downward, positive values tilt upward. |
inOut | The direction to zoom. |
Definition at line 65 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::DeletePreset | ( | Preset^ | preset | ) |
Deletes a preset from the system.
preset | The Preset to delete. |
Definition at line 71 of file PtzController.cpp.
List< CPPCli::Pattern^ > CPPCli::PtzController::GetPatterns | ( | ) |
Get the available patterns.
List
of patterns.Definition at line 77 of file PtzController.cpp.
List< CPPCli::Preset^ > CPPCli::PtzController::GetPresets | ( | ) |
Get the available presets.
List
of presets.Definition at line 101 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::Refresh | ( | ) |
Update this instances properties.
Definition at line 125 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::RelativeMove | ( | int | deltaX, |
int | deltaY, | ||
int | deltaZ | ||
) |
Moves the camera position relative to the current position.
deltaX | The degree to pan relative to the current X position. Negative values pan left, positive values pan right. |
deltaY | The degree to tilt relative to the current Y position. Negative values pan left, positive values pan right. |
deltaZ | The magnification level relative to the current Z position. Negative values pan left, positive values pan right. |
Definition at line 129 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::RelativePercentageMove | ( | int | percentageX, |
int | percentageY | ||
) |
Moves the camera position within a percentage relative to the device’s current field of view.
The rotational x and y parameters are used to move within a percentage of the current field of view of the camera. For instance, if the x parameter were 50 and the y parameter were -50, the pan/tilt would move halfway to the edge of the field of view along the x axis and halfway to the field of view along the negative y axis from its present position.
percentageX | Percentage of the current field of view of the camera (X axis). Positive values are to the right, negative values are to the left. Range: -100 to 100. |
percentageY | Percentage of the current field of view of the camera (Y axis). Positive values are up, negative values are down. Range: -100 to 100. |
Definition at line 135 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::RepositionPreset | ( | Preset^ | preset | ) |
Repositions a preset to the current PTZ spatial coordinates.
preset | The Preset to reposition. |
Definition at line 141 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::Stop | ( | ) |
Stops all PTZ actions.
Definition at line 147 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::TriggerPattern | ( | Pattern^ | pattern | ) |
Trigger a pattern.
pattern | The Pattern to trigger. |
Definition at line 153 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::TriggerPreset | ( | int | index | ) |
Triggers a preset by index.
index | The index of the preset to trigger. |
Definition at line 159 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::TriggerPreset | ( | Preset^ | preset | ) |
Trigger a preset.
preset | The Preset to trigger. |
Definition at line 165 of file PtzController.cpp.
CPPCli::Results::Value CPPCli::PtzController::TriggerRefresh | ( | ) |
Triggers a refresh of this PtzController on the VideoXpert system; updating its patterns and presets based on the current camera configuration.
Definition at line 171 of file PtzController.cpp.
|
package |
Definition at line 321 of file PtzController.h.
|
get |
Gets a value indicating whether the PTZ control is locked.
true
if locked, false
if not.
Definition at line 249 of file PtzController.h.
|
get |
Gets the time remaining (in seconds) until the PTZ lock expires.
The expire time in seconds.
Definition at line 258 of file PtzController.h.
|
get |
Gets the PtzLimits for this ptz controller.
nullptr
if no ptz limits are available, else the PtzLimits.
Definition at line 267 of file PtzController.h.
|
get |
Gets the PtzLock associated with this ptz controller.
nullptr
if no ptz lock is available, else the PtzLock.
Definition at line 276 of file PtzController.h.
|
get |
Gets the X coordinate absolute position (pan).
The current X coordinate.
Definition at line 285 of file PtzController.h.
|
get |
Gets the Y coordinate absolute position (tilt).
The current Y coordinate.
Definition at line 298 of file PtzController.h.
|
get |
Gets the Z coordinate absolute position (zoom).
The current Z coordinate.
Definition at line 311 of file PtzController.h.