Package edu.wpi.first.cscore
Class VideoEvent
java.lang.Object
edu.wpi.first.cscore.VideoEvent
Video event.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe video event kind.intListener that was triggered.New source video mode.Source/sink/property name.intSource property handle.Source property kind.intThe sink handle.intThe source handle.intEvent value.Event value as a string. -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoEvent.KindgetKindFromInt(int kind) Convert from the numerical representation of kind to an enum type.Returns the property associated with the event (if any).getSink()Returns the sink associated with the event (if any).Returns the source associated with the event (if any).
-
Field Details
-
kind
The video event kind. -
sourceHandle
The source handle.Valid for kSource* and kSink* respectively.
-
sinkHandle
The sink handle. -
name
Source/sink/property name. -
mode
New source video mode. -
propertyHandle
Source property handle. -
propertyKind
Source property kind. -
value
Event value. -
valueStr
Event value as a string. -
listener
Listener that was triggered.
-
-
Method Details
-
getKindFromInt
Convert from the numerical representation of kind to an enum type.- Parameters:
kind- The numerical representation of kind- Returns:
- The kind
-
getSource
Returns the source associated with the event (if any).- Returns:
- The source associated with the event (if any).
-
getSink
Returns the sink associated with the event (if any).- Returns:
- The sink associated with the event (if any).
-
getProperty
Returns the property associated with the event (if any).- Returns:
- The property associated with the event (if any).
-