Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection View #126

Merged
merged 45 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4db0ca2
Added a first prototype of a pose query container. No interaction pos…
Mar 2, 2022
60949d2
Added ability to select and move joints.
Mar 2, 2022
b0ea753
Updated OpenAPI specs.
ppanopticon Mar 3, 2022
245017d
Second iteration of skeleton pose query UI.
ppanopticon Mar 4, 2022
49b7f16
Added .angular to .gitignore.
ppanopticon Mar 4, 2022
36fb979
Optimised pose query interface and fixed several issues:
ppanopticon Mar 4, 2022
4e1dc64
Fixed wrong quotations marks.
ppanopticon Mar 4, 2022
772dcf4
Fixed default config.
ppanopticon Mar 4, 2022
fe21a7e
Added notion of highlighted vs selected skeleton and simplified remov…
ppanopticon Mar 4, 2022
7a62547
Aspect ratio of canvas is now 16:9 by default but can be changed to 4:3.
ppanopticon Mar 7, 2022
0f6e533
fixing #102
silvanheller Mar 7, 2022
06d4972
bumping version
silvanheller Mar 7, 2022
9e7bc99
Minor config fix
lucaro Mar 11, 2022
9dd4e3d
removing motion features
silvanheller Mar 13, 2022
e93aff9
Minor fix and adjustments
lucaro Mar 14, 2022
8eeb28e
null-safety for dres status
silvanheller Mar 14, 2022
1abb589
fixing dres-status not updating
silvanheller Mar 14, 2022
d5c089e
Merge remote-tracking branch 'origin/cleanup-motion' into feature/pos…
silvanheller Mar 14, 2022
4f67024
regenerating Openapi
silvanheller Mar 14, 2022
abba691
first logic
silvanheller Apr 7, 2022
b9f02f0
Merge branch 'master' into feature/pose-query
silvanheller Apr 7, 2022
5c03317
npm install update after merge
silvanheller Apr 7, 2022
6b9e398
Merge branch 'feature/pose-query' into collection-view
silvanheller Apr 7, 2022
4c51d1e
ctd draft implementation
silvanheller Apr 7, 2022
84752b8
re-generating openapi
silvanheller Apr 8, 2022
ed4d83a
consistently using variables with openapi-gen, removing categories wh…
silvanheller Apr 12, 2022
0d6abca
regenerating openapi specs
silvanheller Apr 12, 2022
cf5cd4a
fixing resolver and various other things not working
silvanheller Apr 12, 2022
4293096
Merge branch 'feature/pose-query' into collection-view
silvanheller Apr 13, 2022
ef5f192
re-generating openapi, adjustments to cineast
silvanheller Apr 13, 2022
37073fe
implementing clickable tables
silvanheller Apr 13, 2022
33309a1
adding clickable links to objects
silvanheller Apr 13, 2022
a28f438
bumping angular
silvanheller Apr 13, 2022
488ccc7
bumping angular II
silvanheller Apr 13, 2022
994407f
bumping multiple packages
silvanheller Apr 13, 2022
7ab3602
implementing trackby
silvanheller Apr 13, 2022
b714516
Added preset selection + a first iteration of presets.
ppanopticon Apr 22, 2022
62072f5
Fixed display issue with skeleton / pose query button.
ppanopticon Apr 22, 2022
406c27b
bumping version, re-generating openapi
silvanheller Apr 25, 2022
452ff8a
Merge branch 'feature/pose-query' into collection-view
silvanheller Apr 25, 2022
d1e4a57
bumping version
silvanheller Apr 25, 2022
950517a
removing leftover debugging statement
silvanheller Apr 25, 2022
e1061fd
Merge remote-tracking branch 'origin/feature/pose-query' into collect…
silvanheller Apr 25, 2022
a7c2126
improved defaults, fixing bug where skeleton-container would always s…
silvanheller Apr 25, 2022
c73c263
Merge remote-tracking branch 'origin/master' into collection-view
silvanheller Apr 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openapi/cineast/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ model/featuresByCategoryQueryResult.ts
model/featuresByEntityQueryResult.ts
model/featuresTextCategoryQueryResult.ts
model/idList.ts
model/integerMessage.ts
model/mediaObjectDescriptor.ts
model/mediaObjectMetadataDescriptor.ts
model/mediaObjectMetadataQueryResult.ts
Expand Down
60 changes: 60 additions & 0 deletions openapi/cineast/api/misc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { ColumnSpecification } from '../model/columnSpecification';
// @ts-ignore
import { DistinctElementsResult } from '../model/distinctElementsResult';
// @ts-ignore
import { IntegerMessage } from '../model/integerMessage';
// @ts-ignore
import { SelectResult } from '../model/selectResult';
// @ts-ignore
import { SelectSpecification } from '../model/selectSpecification';
Expand Down Expand Up @@ -93,6 +95,64 @@ export class MiscService {
return httpParams;
}

/**
* Count objects
* Equivalent to calling SELECT count(*) FROM table. Used to determined #pages for pagination in a frontend or statistical purposes
* @param table
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public countRows(table: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<IntegerMessage>;
public countRows(table: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<IntegerMessage>>;
public countRows(table: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<IntegerMessage>>;
public countRows(table: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
if (table === null || table === undefined) {
throw new Error('Required parameter table was null or undefined when calling countRows.');
}

let localVarHeaders = this.defaultHeaders;

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

return this.httpClient.get<IntegerMessage>(`${this.configuration.basePath}/api/v1/count/table/${encodeURIComponent(String(table))}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
reportProgress: reportProgress
}
);
}

/**
* Find all distinct elements of a given column
* Find all distinct elements of a given column. Please note that this operation does cache results.
Expand Down
64 changes: 63 additions & 1 deletion openapi/cineast/api/object.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class ObjectService {
* Find object by specified attribute value. I.e by id, name or path
* Find object by specified attribute value. I.e by id, name or path
* @param attribute The attribute type of the value. One of: id, name, path
* @param value
* @param value The actual value that you want to filter for
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
Expand Down Expand Up @@ -270,4 +270,66 @@ export class ObjectService {
);
}

/**
* Get a fixed amount of objects from the sorted list
* Equivalent to calling SELECT * FROM multimediaobject ORDER BY objectid ASC LIMIT limit SKIP skip. Mostly used for pagination when wanting to retrieve all objects
* @param skip How many objects should be skipped
* @param limit How many object at most should be fetched
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public findObjectsPagination(skip: number, limit: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<MediaObjectQueryResult>;
public findObjectsPagination(skip: number, limit: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<MediaObjectQueryResult>>;
public findObjectsPagination(skip: number, limit: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<MediaObjectQueryResult>>;
public findObjectsPagination(skip: number, limit: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
if (skip === null || skip === undefined) {
throw new Error('Required parameter skip was null or undefined when calling findObjectsPagination.');
}
if (limit === null || limit === undefined) {
throw new Error('Required parameter limit was null or undefined when calling findObjectsPagination.');
}

let localVarHeaders = this.defaultHeaders;

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

return this.httpClient.get<MediaObjectQueryResult>(`${this.configuration.basePath}/api/v1/find/object/all/${encodeURIComponent(String(skip))}/${encodeURIComponent(String(limit))}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
reportProgress: reportProgress
}
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { QueryTerm } from './queryTerm';


export interface QueryComponent {
terms?: Array<QueryTerm>;
containerId?: number;
export interface IntegerMessage {
value?: number;
}

1 change: 1 addition & 0 deletions openapi/cineast/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from './featuresByCategoryQueryResult';
export * from './featuresByEntityQueryResult';
export * from './featuresTextCategoryQueryResult';
export * from './idList';
export * from './integerMessage';
export * from './mediaObjectDescriptor';
export * from './mediaObjectMetadataDescriptor';
export * from './mediaObjectMetadataQueryResult';
Expand Down
6 changes: 3 additions & 3 deletions openapi/cineast/model/queryConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export interface QueryConfig {
maxResults?: number;
relevantSegmentIds?: Set<string>;
correspondenceFunctionIfEmpty?: QueryConfig;
distanceIfEmpty?: QueryConfig;
distanceWeightsIfEmpty?: QueryConfig;
normIfEmpty?: QueryConfig;
correspondenceFunction?: object;
normIfEmpty?: QueryConfig;
distanceWeightsIfEmpty?: QueryConfig;
distanceIfEmpty?: QueryConfig;
rawResultsPerModule?: number;
}
export namespace QueryConfig {
Expand Down
4 changes: 2 additions & 2 deletions openapi/cineast/model/temporalQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export interface TemporalQuery {
queries: Array<StagedSimilarityQuery>;
config?: TemporalQueryConfig;
metadataAccessSpec?: Array<MetadataAccessSpecification>;
timeDistances?: Array<number>;
temporalQueryConfig?: TemporalQueryConfig;
maxLength?: number;
messageType?: TemporalQuery.MessageTypeEnum;
timeDistances?: Array<number>;
temporalQueryConfig?: TemporalQueryConfig;
}
export namespace TemporalQuery {
export type MessageTypeEnum = 'PING' | 'Q_SIM' | 'Q_MLT' | 'Q_NESEG' | 'Q_SEG' | 'M_LOOKUP' | 'Q_TEMPORAL' | 'SESSION_START' | 'QR_START' | 'QR_END' | 'QR_ERROR' | 'QR_OBJECT' | 'QR_METADATA_O' | 'QR_METADATA_S' | 'QR_SEGMENT' | 'QR_SIMILARITY' | 'QR_TEMPORAL';
Expand Down
6 changes: 3 additions & 3 deletions openapi/cineast/model/temporalQueryConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export interface TemporalQueryConfig {
maxResults?: number;
relevantSegmentIds?: Set<string>;
correspondenceFunctionIfEmpty?: QueryConfig;
distanceIfEmpty?: QueryConfig;
distanceWeightsIfEmpty?: QueryConfig;
normIfEmpty?: QueryConfig;
correspondenceFunction?: object;
normIfEmpty?: QueryConfig;
distanceWeightsIfEmpty?: QueryConfig;
distanceIfEmpty?: QueryConfig;
rawResultsPerModule?: number;
}
export namespace TemporalQueryConfig {
Expand Down
Loading