本文整理汇总了Java中org.onvif.ver10.schema.PTZConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java PTZConfiguration类的具体用法?Java PTZConfiguration怎么用?Java PTZConfiguration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PTZConfiguration类属于org.onvif.ver10.schema包,在下文中一共展示了PTZConfiguration类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getNode
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
public PTZNode getNode(PTZConfiguration ptzConfiguration) {
GetNode request = new GetNode();
GetNodeResponse response = new GetNodeResponse();
if (ptzConfiguration == null) {
return null; // no PTZ support
}
request.setNodeToken(ptzConfiguration.getNodeToken());
try {
response = (GetNodeResponse) soap.createSOAPDeviceRequest(request, response, true);
}
catch (SOAPException | ConnectException e) {
e.printStackTrace();
return null;
}
if (response == null) {
return null;
}
return response.getPTZNode();
}
示例2: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* @param profileToken
* @return If is null, PTZ operations are not supported
* @throws Exception
*/
public PTZConfiguration getPTZConfiguration(String profileToken) throws Exception {
if (profileToken == null || profileToken.equals("")) {
return null;
}
Profile profile = onvifDevice.getMediaService().getProfile(profileToken);
if (profile == null) {
throw new IllegalArgumentException("No profile available for token: " + profileToken);
}
if (profile.getPTZConfiguration() == null) {
return null; // no PTZ support
}
return profile.getPTZConfiguration();
}
示例3: getNode
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
public PTZNode getNode(PTZConfiguration ptzConfiguration) throws Exception {
GetNode request = new GetNode();
if (ptzConfiguration == null) {
return null; // no PTZ support
}
request.setNodeToken(ptzConfiguration.getNodeToken());
GetNodeResponse response = client.processRequest(request, GetNodeResponse.class, serviceUrl, true);
if (response == null)
return null;
return response.getPTZNode();
}
示例4: isRelativeMoveSupported
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
public boolean isRelativeMoveSupported(String profileToken) throws Exception {
if (onvifDevice.getMediaService() == null)
return false;
Profile profile = onvifDevice.getMediaService().getProfile(profileToken);
PTZConfiguration ptzConf = profile.getPTZConfiguration();
if (ptzConf == null)
return false;
if (ptzConf.getDefaultRelativePanTiltTranslationSpace() == null)
return false;
return true;
}
示例5: isContinuosMoveSupported
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
public boolean isContinuosMoveSupported(String profileToken) throws Exception {
if (onvifDevice.getMediaService() == null)
return false;
Profile profile = onvifDevice.getMediaService().getProfile(profileToken);
PTZConfiguration ptzConf = profile.getPTZConfiguration();
if (ptzConf == null)
return false;
if (ptzConf.getDefaultContinuousPanTiltVelocitySpace() == null)
return false;
return true;
}
示例6: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* @param profileToken
* @return If is null, PTZ operations are not supported
*/
public PTZConfiguration getPTZConfiguration(String profileToken) {
if (profileToken == null || profileToken.equals("")) {
return null;
}
Profile profile = onvifDevice.getDevices().getProfile(profileToken);
if (profile == null) {
throw new IllegalArgumentException("No profile available for token: "+profileToken);
}
if (profile.getPTZConfiguration() == null) {
return null; // no PTZ support
}
return profile.getPTZConfiguration();
}
示例7: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Gets the value of the ptzConfiguration property.
*
* <p>
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ptzConfiguration property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getPTZConfiguration().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link PTZConfiguration }
*
*
*/
public List<PTZConfiguration> getPTZConfiguration() {
if (ptzConfiguration == null) {
ptzConfiguration = new ArrayList<PTZConfiguration>();
}
return this.ptzConfiguration;
}
示例8: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Gets the value of the ptzConfiguration property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ptzConfiguration property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPTZConfiguration().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PTZConfiguration }
*
*
*/
public List<PTZConfiguration> getPTZConfiguration() {
if (ptzConfiguration == null) {
ptzConfiguration = new ArrayList<PTZConfiguration>();
}
return this.ptzConfiguration;
}
示例9: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Ruft den Wert der ptzConfiguration-Eigenschaft ab.
*
* @return possible object is {@link PTZConfiguration }
*
*/
public PTZConfiguration getPTZConfiguration() {
return ptzConfiguration;
}
示例10: setPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Legt den Wert der ptzConfiguration-Eigenschaft fest.
*
* @param value
* allowed object is {@link PTZConfiguration }
*
*/
public void setPTZConfiguration(PTZConfiguration value) {
this.ptzConfiguration = value;
}
示例11: getPTZ
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Ruft den Wert der ptz-Eigenschaft ab.
*
* @return
* possible object is
* {@link PTZConfiguration }
*
*/
public PTZConfiguration getPTZ() {
return ptz;
}
示例12: setPTZ
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Legt den Wert der ptz-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link PTZConfiguration }
*
*/
public void setPTZ(PTZConfiguration value) {
this.ptz = value;
}
示例13: getPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Recupera il valore della proprietà ptzConfiguration.
*
* @return
* possible object is
* {@link PTZConfiguration }
*
*/
public PTZConfiguration getPTZConfiguration() {
return ptzConfiguration;
}
示例14: setPTZConfiguration
import org.onvif.ver10.schema.PTZConfiguration; //导入依赖的package包/类
/**
* Imposta il valore della proprietà ptzConfiguration.
*
* @param value
* allowed object is
* {@link PTZConfiguration }
*
*/
public void setPTZConfiguration(PTZConfiguration value) {
this.ptzConfiguration = value;
}