@Namespace(value="FlyCapture2") @NoOffset @Properties(inherit=FlyCapture2.class) public class TopologyNode extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
BUS
enum FlyCapture2::TopologyNode::NodeType
|
static int |
CAMERA
enum FlyCapture2::TopologyNode::NodeType
|
static int |
COMPUTER
enum FlyCapture2::TopologyNode::NodeType
|
static int |
CONNECTED_TO_CHILD
enum FlyCapture2::TopologyNode::PortType
|
static int |
CONNECTED_TO_PARENT
enum FlyCapture2::TopologyNode::PortType
|
static int |
NODE
enum FlyCapture2::TopologyNode::NodeType
|
static int |
NOT_CONNECTED
enum FlyCapture2::TopologyNode::PortType
|
Constructor and Description |
---|
TopologyNode()
Default constructor.
|
TopologyNode(long size)
Native array allocator.
|
TopologyNode(PGRGuid guid,
int deviceId,
int nodeType,
int interfaceType)
Constructor.
|
TopologyNode(Pointer p)
Pointer cast constructor.
|
TopologyNode(TopologyNode other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
AddChild(TopologyNode childNode)
Add the specified TopologyNode as a child of the node.
|
void |
AddPortType(int childPort)
Add the specified PortType as a port of the node.
|
boolean |
AssignGuidToNode(PGRGuid guid,
int deviceId)
Assign a PGRGuid and device ID to the node.
|
boolean |
AssignGuidToNode(PGRGuid guid,
int deviceId,
int nodeType)
Assign a PGRGuid, device ID and nodeType to the node.
|
TopologyNode |
GetChild(int _position)
Get child node located at the specified position.
|
int |
GetDeviceId()
Get the device ID associated with the node.
|
PGRGuid |
GetGuid()
Get the PGRGuid associated with the node.
|
int |
GetInterfaceType()
Get the interface type associated with the node.
|
int |
GetNodeType()
Get the node type associated with the node.
|
int |
GetNumChildren()
Get the number of child nodes.
|
int |
GetNumPorts()
Get the number of ports.
|
TopologyNode |
getPointer(long i) |
int |
GetPortType(int _position)
Get type of port located at the specified position.
|
TopologyNode |
position(long position) |
TopologyNode |
put(TopologyNode other)
Assignment operator.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int NOT_CONNECTED
public static final int CONNECTED_TO_PARENT
public static final int CONNECTED_TO_CHILD
public static final int COMPUTER
public static final int BUS
public static final int CAMERA
public static final int NODE
public TopologyNode(Pointer p)
Pointer(Pointer)
.public TopologyNode(long size)
Pointer.position(long)
.public TopologyNode()
public TopologyNode(@ByVal PGRGuid guid, int deviceId, @Cast(value="FlyCapture2::TopologyNode::NodeType") int nodeType, @Cast(value="FlyCapture2::InterfaceType") int interfaceType)
guid
- The PGRGuid of the node (if applicable).deviceId
- Device ID of the node.nodeType
- Type of the node.interfaceType
- Interface type of the node.public TopologyNode(@Const @ByRef TopologyNode other)
public TopologyNode position(long position)
public TopologyNode getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public TopologyNode put(@Const @ByRef TopologyNode other)
other
- The TopologyNode to copy from.@ByVal public PGRGuid GetGuid()
public int GetDeviceId()
@Cast(value="FlyCapture2::TopologyNode::NodeType") public int GetNodeType()
@Cast(value="FlyCapture2::InterfaceType") public int GetInterfaceType()
@Cast(value="unsigned int") public int GetNumChildren()
@ByVal public TopologyNode GetChild(@Cast(value="unsigned int") int _position)
position
- Position of the node.public void AddChild(@ByVal TopologyNode childNode)
childNode
- The TopologyNode to add.@Cast(value="unsigned int") public int GetNumPorts()
@Cast(value="FlyCapture2::TopologyNode::PortType") public int GetPortType(@Cast(value="unsigned int") int _position)
position
- Position of the port.public void AddPortType(@Cast(value="FlyCapture2::TopologyNode::PortType") int childPort)
childPort
- The port to add.@Cast(value="bool") public boolean AssignGuidToNode(@ByVal PGRGuid guid, int deviceId)
guid
- PGRGuid to be assigned.deviceId
- Device ID to be assigned.@Cast(value="bool") public boolean AssignGuidToNode(@ByVal PGRGuid guid, int deviceId, @Cast(value="FlyCapture2::TopologyNode::NodeType") int nodeType)
guid
- PGRGuid to be assigned.deviceId
- Device ID to be assigned.nodeType
- NodeType to be assignedCopyright © 2023. All rights reserved.