当前位置: 首页>>代码示例>>Java>>正文


Java PTZConfiguration类代码示例

本文整理汇总了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();
}
 
开发者ID:milg0,项目名称:onvif-java-lib,代码行数:24,代码来源:PtzDevices.java

示例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();
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:20,代码来源:PtzService.java

示例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();
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:12,代码来源:PtzService.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:12,代码来源:PtzService.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:12,代码来源:PtzService.java

示例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();
}
 
开发者ID:milg0,项目名称:onvif-java-lib,代码行数:19,代码来源:PtzDevices.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:27,代码来源:GetConfigurationsResponse.java

示例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;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:29,代码来源:GetConfigurationsResponse.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:10,代码来源:GetConfigurationResponse.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:11,代码来源:GetConfigurationResponse.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:12,代码来源:ConfigurationSet.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:12,代码来源:ConfigurationSet.java

示例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;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:12,代码来源:GetConfigurationResponse.java

示例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;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:12,代码来源:GetConfigurationResponse.java


注:本文中的org.onvif.ver10.schema.PTZConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。