是Surface的抽象接口,操纵surface的控制器。
是Surface的抽象接口,操纵surface的控制器。
参考答案和解析
lockCanvas
相关考题:
____ is covered with heavy snow. A.The earth's surfaceB.The surface of earthC.The surface earthD.The earth surface
阅读以下说明和C++程序,将应填入(n)处的字句写在对应栏内。【说明】以下程序的功能是计算正方体、球体和圆柱体的表面积和体积并输出。程序由4个类组成:类cube、sphere和cylinder分别表示正方体、球体和圆柱体;抽象类 container为抽象类,提供了两个纯虚拟函数surface_area()和volum(),作为通用接口。【C++程序】include<iostream.h>define pi 3.1416class container{protected:double radius;public:container(double radius) {container::radius=radius;}virtual double surface_area()=0;virtual double velum()=0;};class cube:(1){ //定义正方体类public:cube(double radius):container(radius){};double surface_area () {return 6 * radius * radius;}double volum() {return radius * radius * radius;}};class sphere:(2){ //定义球体类public:sphere(double radius): container(radius){};double surface_area() { return (3);}double volum() {return pi * radius * radius * radius * 4/3;}};class cylinder:(4){ //定义圆柱体类double height;public:cylinder(double radius,double height):container(radius){container::height=height;}double surface_are a () { return 2 * pi * radius * (height+radius); }double volum () {return (5);}};void main(){container * p;cube obj1 (5);sphere obj2(5);cylinder obj3(5,5);p=obj1;cout<<“正方体表面积”(<<p->surface_area()<<end1;cont<<“正方体体积”<<p->volume()<<end1;p=obj2;cout<<“球体表面积”<<p->surface_area()<<end1;cout<<“球体体积”<<p->volume()<<end1;p=obj3;cout<<“球体表面积”<<p->surface_area()<<end1;cout<<“球体体积”<<p->volume()<<end1;}
The correction to KG for longitudinal free surface effects for a vessel can be found by dividing the vessel's displacement into the ______.A.Transverse free surface correction for the vesselB.Sum of the vertical moments of the vesselC.Sum of the longitudinal free surface moments of the vesselD.Longitudinal centerline of the vessel
The free surface corrections depend upon the dimensions of the surface of the free liquids and the ______.A.volume of liquid in the tankB.displacement of the vesselC.location of the tank in the vesselD.height of the center of gravity of the vessel
Cloud formations are minimal when the ______.A.surface temperature and temperature aloft are equalB.surface temperature and temperature aloft differ greatlyC.barometric pressure is very lowD.relative humidity is very high
以下关于SurfaceView播放视频的说法,不正确的是()A、SurfaceView继承自View,其中内嵌了一个专门用于绘制的Surface。B、开发者可以控制Surface的格式和尺寸,但不能让SurfaceView控制这个Surface的绘制位置。C、Surface对应一块屏幕缓冲区,每个Window对应一个Surface,任何View都是画在Surface上的,包括之前讲过的控件和布局控件。D、一般的View都共享一块屏幕缓冲区,所有的绘制必须在UI线程中进行。
下面是属于GLSurFaceView特性的是()。A、管理一个surface,这个surface就是一块特殊的内存,能直接排版到android的视图view上B、管理一个EGLdisplay,它能让opengl把内容渲染到上述的surface上C、让渲染器在独立的线程里运作,和UI线程分离D、可以直接从内存或者DMA等硬件接口取得图像数据
底漆用于出白金属表面, 防止其生锈。()A、Topside paint is applied to a bare surface to give protective against rust.B、Undercoat is applied to a bare surface to give protection against rust.C、Primer coat is applied to a bare surface to give protection against rust.D、Topcoat is applied to a bare surface to give protection against rust.
以下哪种测试需要接通液压()A、AUTO TESTS(自动测试)B、SURFACE TESTS(舵面测试)C、INTERACTIVE TESTS(互动测试)D、INTERFACE TESTS(接口测试)
单选题以下关于SurfaceView播放视频的说法,不正确的是()ASurfaceView继承自View,其中内嵌了一个专门用于绘制的Surface。B开发者可以控制Surface的格式和尺寸,但不能让SurfaceView控制这个Surface的绘制位置。CSurface对应一块屏幕缓冲区,每个Window对应一个Surface,任何View都是画在Surface上的,包括之前讲过的控件和布局控件。D一般的View都共享一块屏幕缓冲区,所有的绘制必须在UI线程中进行。
多选题下面是属于GLSurFaceView特性的是()。A管理一个surface,这个surface就是一块特殊的内存,能直接排版到android的视图view上B管理一个EGLdisplay,它能让opengl把内容渲染到上述的surface上C让渲染器在独立的线程里运作,和UI线程分离D可以直接从内存或者DMA等硬件接口取得图像数据
单选题To calculate the free surface correction,it is necessary to divide the free-surface moments by the().Atotal weight of liquid loadsBtotal displacementClightweightDdeadweight
单选题The correction to KG for longitudinal free surface effects for a vessel can be found by dividing the vessel’s displacement into the().Atransverse free surface correction for the vesselBsum of the vertical moments of the vesselCsum of the longitudinal free surface moments of the vesselDlongitudinal centerline of the vessel
单选题You are developing a Windows Presentation Foundation (WPF) application.You need to display HTML content from a Web page on the WPF form. What should you do?()AAdd a FlowDocumentReader control to the design surface. Then create a FlowDocument control.BAdd a DocumentViewer control to the design surface. Then create a FixedDocument control.CAdd a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.DAdd a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.
单选题If you were inspecting the valve springs on an auxiliary diesel engine, your best indication of impending spring failure would be ()Aa glazed surface on the springBnicks in the protective coatingCa build up of sludge depositsDcracks in the surface of the spring
单选题A VESSEL,OTHER THAN A RESCUE UNIT,DESIGNATED TO CO-ORDINATE SURFACE SEARCH AND RESCUE OPERATION WITHIN A SPECIFIED AREA is known as().ASalving vesselBCo-ordinator surface searchCMERSARDThe vessel being salved
单选题What is the purpose of a striker plate? ()AProvides surface for applying force on machineryBProvides landing surface for the sounding bobCAbsorbs machinery vibrationDPrevents valve stem over-travel
单选题Many vessels are provided with flume tanks,which also have a dump tank located under the flume tanks. In the event the ship is damaged,you could dump the flume tanks into the dump tank which would().Areduce the free surface effect and raise the KGBnot have any effect on free surface and raise the KGCreduce the free surface effect and lower the KGDnot have any effect on free surface and lower the KG
单选题()is a type of fog occurring close to the sea surface when the air is dry and cold-probably at least 9℃ below the sea surface temperature.AMIXING FOGBADVECTION FOGCRADIATION FOGDARCTIC SEA SMOKE
单选题The effect of free surface on initial stability depends upon().Athe amount of liquid in the compartmentBthe dimensions of the liquid surface and the vessel's displacementConly the length of the compartmentDthe vertical position of the liquid in the vessel
单选题The effects of free surface on initial stability depend upon the dimensions of the surface of the free liquids and the().Avolume of liquid in the tankBvolume of displacement of the vesselClocation of the tank in the vesselDheight of the center of gravity of the vessel